Quick question about errors

System.out.println(cheese);
the missing quotes around cheese, is that run time error or syntax error? i use eclipse. so it tells me right away about the error. so i'm wondering if it's run time error or not. i thought it was a syntax error but in this python book i'm reading, it's telling me it's a run time error. which is it?
just confirming: syntactic errors are like grammar mistakes right?

802807 wrote:
System.out.println(cheese);
the missing quotes around cheese, is that run time error or syntax error?Depends on whether a variable called "cheese" is in scope :)
i use eclipse. so it tells me right away about the error.Aren't IDEs nice like that :)
i thought it was a syntax error but in this python book i'm reading, it's telling me it's a run time error. which is it?
In Python it is, in Java see above.
just confirming: syntactic errors are like grammar mistakes right?no.
Syntax errors are mainly spelling errors.
Grammatical errors would more likely expose themselves as logic errors causing runtime exceptions or just plain unexpected and incorrect application behaviour.
Like your System.out.println(cheese); could be either.
If you intented to write System.out.println("cheese"); it's a spelling error and therefore a runtime error.
If there happens to be a variable "cheese" in scope that you didn't intend to use it turns into a runtime malfunction as something is printed that you didn't want printed, a grammatical error.

Similar Messages

  • A quick question about WebDynpro SLD and R/3 with concurrent users

    Hello ,
    I have a very quick question about Webdynpros and SLD connecting to an R/3 system, when you configure a webdynpro to connect to an R/3 system using SLD, you configure a user name and password from the R/3  for the SLD to use. What I would like to know is when I have concurrent users of my webdynpro, how can I know what one user did in R/3 and what another user did? Is there a way for the users of the web dynpro to use their R/3 credentials so SLD can access the R/3? Like dynamically configuring the SLD for each user?
    - I would like to avoid leaving their their passwords open in the code ( configuring two variable to get the users username and password and use these variables as JCO username and password )
    Thanks Ubergeeks,
    Guy

    Hi Guy
    You will have to use Single Sign On to achieve this. In the destination you have defined to connect to R/3 , there is an option to 'useSSO' instead of userid and password. This will ensure that calls to R/3 will be with the userid that has logged into WAS. You wont need to pass any passwords because  a login ticket is generated from WAS and passed on to R/3. The userid is derived from this ticket.
    For this to happen you will have to maintain a trust relation ship between R/3 and your WAS ,there is detailed documentation of this in help files. Configuration is very straight forward and is easy to perform
    Regards
    Pran

  • QUICK QUESTION ABOUT PORTS

    Hi, I have a quick question about port forwarding/mapping. My question, lets say I am running MSN messenger, who's ports are 6880-6900. But lets say I am running a torrent application or something else that requires those ports. If both applications were running at the same time, would this cause interference with them on the same ports or now. Thanks
    Nathan

    Normally, only one application can listen to a specific port number at a time. If MSN is grabbing those 21 ports then your torrent app won't be able to run.
    However, most apps don't work that way - even if they use multiple ports, they don't use them all at the same time, so MSN might use 6880 when it starts up, leaving the others open for other applications to use if needed.
    Only experimentation will answer that one.

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Quick Question about Cisco 3560 and the Web Device Manager

    Alright, I have a quick question that I am curious about but I haven't found any information
    about it.
    When I log into my Cisco 3560 using the web portal to get to the Device Manager. Below the
    diagram of the switch, then under the Dashboard there is section called Switch
    Health, Port Utilization.
    Under the Switch Health there is Bandwidth Used, Packet Error. Those two options just sit
    at zero and do not move. The Port tilization graph is also sitting at zero.
    Is there a way to make them functional?

    Anyone notice performance increase or decrease of their HD when using the nVidia IDE SW drivers?  particularly with a 74GB Raptor?  I've also heard of burner issues when installing the IDE SW but have not used my burner yet.

  • Questions about errors

    These are my latest HH3a stats after a DLM resynch - part of an ongoing battle with it over the SNR
    Connection Information
    Line state:
    Connected
    Connection time:
    2 days, 03:05:42
    Downstream:
    6.711 Mbps
    Upstream:
    888.9 Kbps
    ADSL Settings
    VPI/VCI:
    0/38
    Type:
    PPPoA
    Modulation:
    G.992.5 Annex A
    Latency type:
    Interleaved
    Noise margin (Down/Up):
    5.1 dB / 8.3 dB
    Line attenuation (Down/Up):
    44.1 dB / 26.0 dB
    Output power (Down/Up):
    20.0 dBm / 12.6 dBm
    FEC Events (Down/Up):
    324989772 / 315
    CRC Events (Down/Up):
    761667 / 0
    Loss of Framing (Local/Remote):
    0 / 0
    Loss of Signal (Local/Remote):
    0 / 0
    Loss of Power (Local/Remote):
    0 / 0
    HEC Events (Down/Up):
    7393116 / 2
    Error Seconds (Local/Remote):
    31313 / 1
    IP is 6.06 and speed 5.92.
    The errors an hour after the resynch were  CRC 702269  HEC 6925930  Secs 28828
    What I want to know/understand is why the errors were so high after the resynch and why am I currently still able to get the speed I can as in the past errors less than half the total shown have completely throttled the line.
    FYI this is a follow on from this thread  http://community.bt.com/t5/BB-Speed-Connection-Issues/Low-Noise-high-errors-again/td-p/734960
    Solved!
    Go to Solution.

    It's not an easy question to answer ... but this may give you an insight.
    Sync is acheived by the msan sending a series of tones down the line to the modem, and according to the acknowledgements, the modulation standard is set. The loop loss is measured electronically and according to same, the amount of SNR (not SNRm) is used to set power factors so that the dslam can transmit the databits over the frequencies for the tones that were accepted. Some tones and thus frequencies will have been lost, as the line can't sustain them, because of either outside influences or mere line length. Once the SNR and power is set, the dslam will apply a buffer which is normally target margin (6db) (can be 3db on DSL2 running a special algo at the msan control).
    Once all these parameters are set the line will attempt to transmit data putting analog information into digital virtual buckets to transmit down the wire.
    If any of the databits are destroyed in total, or the majority of the packet is useless, a cyclic checksum will command a resend of that packet. If the packets are fairly good, and transmittable, they will go but will be checked and error corrected by a soft block code algorithm using RS codewords to fix the packet, these don;t get resent merely fixed.
    If the line is having a bad day, the errors may rack up and quickly, so the modem has the capability to drop the connection if it sees multiple second counts whereby the entire payload was corrupted, but it won't do it until a threshold (count) is breached.
    Lines change all the time, and at different times of day, as for example impulse noise increases at night owing to external influences, street lamp radiation, radio frequencies etc. and this is normally absorbed by the margin of the SNR, or put another way the noise margin. If databit transmission becomes difficult the MSAN control can increase the margin to enable the linedata to be "heard"... at the cost of linespeed.
    To get back to your original point about error rates .... if your line sees high CRC checks (and resends) high HECS , header corrections ... it will absorb high levels of bandwidth and reduced throughput will ensue.
    With FEC high figures simply shows interleave and block error correction is working, and it is demonstrating the rate of bits that are acknowledged as repaired. All lines will see some, and some more than others. The better the line and quality of the path, the less errors will be seen.
    The DSL also has a further trick up its sleeve. If certain frequencies can't be used when negotiation takes place, it has the ability to swap databits from one virtual bucket to another bit-free part of the spectrum, that isn't being utilised for transmission, and in doing so maintains the throughput without wasting any bandwidth. That's bitswapping and is used frequently on longer, or errornous lines where "normal" databit transmission is difficult.
    To put all this into perspective .... if your line starts to crackle .... high counts of errored seconds will be seen, and cyclic checking will go up, along with packet header correction. And as all this takes up overhead, throughput and data transfer depletes until the modem drops the connection.
    On regaining a new re-negotiated connection, the dslam may according to line history and the "fault" that caused linedrop .... impose a higher level of interleave, via the DLM line algorithm. It can also reduce sync like it does at night, in order to negotiate a connection that is sustainable.
    Crackle is probably the worst case scenario, as eventually the connection is bound to drop. But even high levels of impulse noise can destroy data packets, so if you have say poor extension wiring that absorbs REIN it will do the same, cut back the throughput.
    Hope this helps.

  • Answer to question about "Error Occurring when convertion is tried for PDF to Word Document"

    There are about ten questions about the "Error Occurring" when  using Abode Reader XLto convert a PDF to a Word Doc, but no one has the answer? It has something to do with "signing in  the wrong address". I have been working on this three days Now! Soimeone has the answer? Cataloochee

    You must be kidding to say, "Adobe doesn't convert any version of Adobe Reader."'  I must be in another world! When i move an Adobe Reader file pdf that goes to a wIndow that the top line says,'' Adobe reader X1 1001 Early Dutch History. pdf ". Then i click on the far left yellow marked icon that is used to move 1001 Early Dutch History.pdf to thye far right into a gray colored slot that reads "1001 Early Dutch History.pdf'. Under the file above  or down below, the selected File for conversionis, a selection gray slot that ask if you want to convert this file(pdf) to a .docx.,.doc, tex. or Excell. After I make the selection and click onto Convert, a message comes into view where the word convert was that reads "An Error Occurred wilth Signing In  OK" Even the use of another pdf file with a complete different address produces the same message. There are eight chapters in Dutch that I need to convert to word document by tommorrow or the class i teach "the Origin of Golf" will have to listen in Dutch and I can't speak Dutch. Cataloochee

  • IMovie - quick questions about video files when importing and optimizing

    Hi, have some quick questions. I think they are simple.
    1. When I import a video (from say iPhoto), where does it get "Move" or "Copy" to?
    2. Why would I want to do "Copy" instead of "Move", because isn't it then taking up more space?
    3. I'm wondering if after I optimize a video, I can stash away the original (non-optimized video that I either "Move"d or "Copy"d earlier) into an external hd.
    4. By the way, what is the new file name of the optimized video?
    Though things are working fine in iMovie and iPhoto, I'm trying to manage hard disk space, and hope answers to these questions will help.
    Do you guys have a guideline on how to manage hard disk space when it comes to iphoto and imovie?
    Thanks.

    As has been suggested you can encourage people to download QuickTime player by doing something like this...
    http://www.mirroroftheuniverse.com/Songs.html
    You can also present your songs like this...
    http://roddymckay.com/Satellite/JukeBox.html
    This is a SnoCap jukebox and you need an account to use it but you'll get the link to ESnips on the above page.
    A 3 minute song has a file size of about 30 Mb in AIFF format. Converting it to MP3 reduces it to about 3.5 Mb and M4A to about 5.5 Mb.
    iTunes will do these conversions for you and M4A is far superior to MP3 as far as sound quality is concerned.

  • Two quick questions about Library after moving beginning on a new computer

    Hi there,
    I just moved from Windows to Mac, meaning I had to move my iTunes library from the old PC to my new MBA.
    Just a couple of quick questions.
    1. When I started iTunes on my new Mac, in the preferences I directed the media folder to the folder with all my itunes music/podcasts etc, and then I imported the Library XML file.  Is this incorrect? Should I have imported a different file? Should I have used the itl file instead? 
    If so, should I delete the library and start again?  (if this is the case, please suggest the best way of doing this without affecting my media)
    - a kind of sub-question to this one:  some of the media files arent showing up in the iTunes library, but they are in the media folder on the ext HDD.  Is there a way I can find out which ones havent been recognized by iTunes?  Whats the best way of getting them in to my library?
    2. Pretty much half of my podcasts have not been loaded in the new iTunes.  The ones that havent were ones that I subscribed to on my iPhone, whereas the ones that show up in iTunes were ones I downloaded from iTunes.  When I connect my iPhone and sync it with iTunes, will those podcasts show up in iTunes?  Or is there a risk that they will be deleted from my iPhone?
    Cheers,

    The .xml is lacking some information such as ratings, date added, and play count.  Using the .itl includes this information but cannot be imported using the method you did.
    A complete library is everything in the iTunes folder.  By using the method you did you left the artwork behind in the artwork folder on the other machine.
    Selecting the media folder in preferences does not get iTunes to recognize the media.  All it does is tell iTunes to start storing new media in that location.
    Using the method I outlined nothing will be missed (with the exception of WMA) because you aren't rebuilding your library, you are using the one that already exists.
    You don't have to re-copy everything as long as you get the stuff you missed and re-assemble it all as it was before except not on the Mac.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391

  • Quick question about Quicktime media keys.......

    I had a question about encoding video and media keys. It seems to me that the only codec that allows you to encode it with a media key is Sorenson (Sorenson 3 I think). Why are they the only ones that are enabling that in their codecs? Is it kind of a dying technology or practice? I've experimented with Sorenson 3 and Sorenson Squeeze trials and, even though it looks ok, it simply doesn't stack up to others like Apple's H.264 or open-source x264 or even Xvid. I guess I wish there were a way to be able to use media key options with all the new H.264 codecs. Is it possible to do that, either with Xcode or AppleScript? Any help would be greatly appreciated!!

    QuickTime has supported 'media keys" since version 3 but you can only add them using the third party software.
    You would be better served by contacting Sorenson and asking them about their support for newer codecs.

  • Quick Question about fade effect

    Quick Question:
    If I wanted to add a Fade Effect from one state to another
    when a button is pressed.
    How would I do that within the code?

    quote:
    Originally posted by:
    atta707
    You can do something like on the click of the button:
    var fader:Fade = new Fade(targetUIComponent);
    fader.duration = 1000;
    fader...;
    fader.play();
    or listen for currentStateChanging event and write the same
    similar code.
    or define transitions from one state to another like:
    <mx:Transition id="toOneOnly" fromState="*"
    toState="OneOnly">
    <mx:Sequence id="t1" targets="{[p2]}">
    <mx:Iris showTarget="false" duration="350"/>
    <mx:SetPropertyAction name="visible"/>
    <mx:SetPropertyAction target="{p2}"
    name="includeInLayout"/>
    </mx:Sequence>
    </mx:Transition>
    Hey,
    I would like to use the "transition from one state to
    another", but if you can explain each part for me that would be
    helpful.
    If you can comment on each line of that code that would help
    thanks

  • Quick question about showing drive space

    Hi,
    Just got a quick query about showing remaining drive space on the desktop.
    Before I wiped my Pismo and reinstalled Tiger (bad kernel panic), my hard drive and any other connected drives (pen drive, iPod, iDisk, etc) showed up on my Desktop with the name and drive capacity and remaining space underneath the icon.
    Now I've reinstalled, the drive capacity and remaining space don't show up on the Desktop, and I can't find how to turn it on. I've been through Preferences several times and can't find an obvious switch. Have I missed something? I'm running Tiger 10.4.8 with the machine spec below.
    Thanks in advance,
    Rob Johnson

    Sometimes, for no obvious reason, the Finder can be slow to update. And sometimes it updates instantly. Why? "Only the Shadow knows...." or maybe the Apple programmers.
    Francine
    Francine
    Schwieder

  • Quick question about sim transfer

    Hi all,
    I have a quick question and hopefully one of you guys would be able to help me. My friend purchased his 3g iphone today and hes giving me his old iphone. I currently have a blackjack and I wanted to take the sims card from the blackjack and put into the original iphone. Will the iphone work with my sims card? It is an older sims card, says 64k on it. If not, would I have to bring it into at&t and get it activated w/a different sims card? Hopefully all this isnt confusing. Thanks for any help. Cheers!

    You're welcome.
    I guess that also means I would have to upgrade to the 20 dollar data plan without the text messages as well?
    The unlimited data plan for the first generation iPhone still costs $20/mo and includes 200 SMS. The only thing you need to get from an at&t store is a new SIM card. Take the iPhone with you telling them what you plan on doing and they should give you a new SIM card at no cost.
    You will activate this iPhone with iTunes on your computer. If you are an existing subscriber, your calling plan will transfer to the iPhone, and any existing data plan you are using with your current phone will be cancelled. If you are an existing subscriber, your only selection will be the $20/mo unlimited data plan which includes 200 SMS, and you can select 1,500 SMS for an additional $10/mo or have unlimited SMS for an additional $20/mo.

  • Quick question about iMovie

    I have a question about iMovie. I've used Final Cut Pro before using iMovie, and FCP allowed the user to play two video/images on top of each other. You could play with the opacity and the duration very easily.
    I'm wondering, can you do the same thing with iMovie? I'll be VERY disappointed if you can't do it.
    iBook G4

    Hi
    And You could take a look at the plug-ins to iMovie.
    - Stupendous software http://www.stupendous-software.com
    - GeeThree http://www.geethree.com
    - cf/x. http://www.imovieplugins.com
    and possibly more.
    QT-pro can do this as said above - but You need to be very precise.
    But I would do this in FCP and then export as QT.mov to do the rest in iMovie
    if necessary.
    Yours Bengt W

  • Quick question about RegExp

    Just a quick question.
    In other languages, I can do this...
    while(reg.exec(string)) {
         //loop through results
    And while looping, I can access the current match with something like reg.Match or whatever. 
    Is this possible in AS?

    Look up the RegExp class.

Maybe you are looking for

  • Email and editor issues

    I am having several issues with Elements 11.  I cant e-mail photos using the share>e-mail, i have tried to use the adobe e-mail service but it doesn't work and does windows live even work anymore?  when I am in the organizer and want to do a full edi

  • In New iTunes how do I play a whole album - stops after first song

    In iTunes 11.0.1 (12) I select Music in upper left of window, select Albums, click on an album, click on > to play and get the first song and then it stops.

  • Save_document_prepare duplicate entry in VBFA

    I am working on BADI Save_document_prepare and spliting delivery for converting to bulk units and to do ATP check on storage location to allocate stock.Split is working fine however after saving it's creating duplicate entry in VBFA table            

  • Migration and DVD/CD Sharing Update" (1.1)

    I recently installed the "Migration and DVD/CD Sharing Update" (1.1)" update using the Software Update application on 10/19/08. The installation went fine with no errors or apparent problems. I noticed yesterday that when I adjust the brightness up o

  • Auto Unlocking of locked objects in SM12

    Hi All, Is there a way that all the object locked in TCODE SM12 for over say 1 or 2 hours, gets unlocked automatically. Any RZ10 parameter or via some other means. I searched but couldn't get anything on the same. Does anyone has some ideas on this.