Why and how this works

Hi,
class hey
     static
          System.out.println("Hello World!");
Above code works fine. In the sence it do throw error, but it prints Hello World! as well.
Why??
Amit

I know. But I want exactly in which sequence the
things are happening.obviously, as parsifal explained, the class is laoded
first (and the text is printed out), then main is
looked for (the entry point of every single
standalone java program), then a
NoSuchMethodException is thrown because no such
method exists
if you want to know more about class loading details,
I advise you take a look at the Java Language
Specificationand the JVM spec maybe...

Similar Messages

  • HT3209 how many times i can watch the show after i purchased on i tune and how this works

    I was just wondering if sombody can help me with this because i am new to itune  . I would like to know how it works after u purchase tv show , do i have to pay once and watch more time or i have to pay every time i watch . Thank you in advance .

    I was just wondering if sombody can help me with this because i am new to itune  . I would like to know how it works after u purchase tv show , do i have to pay once and watch more time or i have to pay every time i watch . Thank you in advance .

  • I'm trying to create a file in imovies and it's capping it to ten minutes length. Does anyone know why and how to work around it?

    I'm combining an image file with an mp3 and setting both to the same duration (19:33.1)

    Best to post in the iMovie forum where those experts are.

  • My external Apple USB Keyboard letters doesn't work, but the numbers do. Why and how can I fix this issue?

    My external Apple USB Keyboard letters doesn't work, but the numbers do. Why and how can I fix this issue? Also, When I open the Keyboard Viewer, the letters will highlight only if I hold the modifier key(s) "Control" or "Control and Option". I really need help with this. I don't have any other computer to try it on, so I will have to test it on a friends computer sometime. But perhaps solutions that I can try right now? Thanks.

    Hello there, IDuncan23.
    The following Knowledge Base article has some great troubleshooting steps you can follow to work on resolving your keyboard issue:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Thanks for reaching Apple Support Communities.
    Cheers,
    Pedro D.

  • Every once in a while, letters stop working on my keyboard. I have to restart to get them to work again. Happens about once a week. Why and how do I keep this from Happening?

    Every once in a while, letters stop working on my keyboard. I have to restart to get them to work again. Happens about once a week. Why and how do I keep this from Happening? An example is: I try to type Super Excited and the U, E and P won't work. But once I restart, all the letters work.

    It could be an accumulation of all sorts of bits of info and depending on the last time you cleared the system cache either manually or via a factory reset on that phone you might find a difference there after doing so with many other system caches.
    Clearing the application cache removes temporary files and frees up memory - your personal settings or information remain intact.
    Be sure you clear only the application cache and not the application data.
    From the home screen, tap Apps.
    Scroll to and tap Settings.
    Tap More.
    Tap Application manager.
    Swipe left to view the All tab.
    Scroll to and tap an application.
    Tap Clear cache.
    You've now cleared the application cache.

  • Any time I open Safari i get a popup for myvdrive? why and how do I stop this? yes my safari preferences are checked that popups should be turned off.

    why and how do I stop this? yes my safari preferences are checked that popups should be turned off. Also it pops up any time that I click anywhere to do anything in safari. Please help.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I just upgraded my ipad OS and now my ipad is not picking up the 3G network.  Why and how do I fix this?  When I go into cellular data and view account it says my ipad is activated and ready to go.  What gives???

    Why and how do I fix this?  When I go into cellular data and view account it says my ipad is activated and ready to go.  What gives???
      It was working fine up until I upgraded the OS which I hadn't done in many versions so the ipad was not working as well as it should.  Now it is searching for the network. 

        Hello noodles074!
    Let's get your device working again! It's possible that your device just needs to be reprovisioned on our network. Please go to Settings>General>Reset>Subscriber Services>Reprovision Account. This may take several minutes. After allowing about 5 minutes for completion, please power your iPad off and back on, and test it again. Let us know if this takes care of it!
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • I cant copy and paste images with firefox but i can with MS explorer why and how is this?

    i cant copy and paste images with firefox but i can with MS explorer why and how is this? i can only copy text but not images is ther a way i can copy images with firefox and how??

    I was having this issue with MS Live email. The old Microsoft shortcuts work. For copy press ctrl+c. For paste press ctrl+v. Here is a webpage that lists all Firefox shortcuts. http://www.mouserunner.com/FF_Shortcuts1Printable.html

  • I use iPhone, iPad and MacPro, all works fine but the newly purchased iMac does not receive emails on time - always later than other devices. Why and how to fix?

    I use iPhone, iPad and MacPro, all works fine but the newly purchased iMac does not receive emails on time - always later than other devices. Why and how to fix?

    Go to Mail Preferences
    Click on the General tab
    Set  "Check for New Messages:"  to  "Every Minute"
    Hope this helps

  • Attachments keep opening up in adobe format , why and how do I stop this ?

    attachments keep opening up in adobe format , why and how do I stop this ?

    I have no idea what you are asking; what is "adobe format"?

  • This is a new notification coming up with iTunes, why and how do I fix it? The song "Penny Lane" could not be used because the original file could not be found. Would you like to locate it?

    This is a new notification coming up with iTunes, why and how do I fix it?
    The song “Penny Lane” could not be used because the original file could not be found. Would you like to locate it?
    Max

    Hey xxCreepyFiaxx,
    First, I would try the following suggested steps for when you don't see content in iTunes after updating:
    Quit iTunes.
    Download and install the latest version of iTunes.
    Use the Finder (Mac) or Windows Explorer (Windows) to go to the iTunes folder that contains the iTunes library files:
    Mac OS X
    /Users/username/Music/iTunes/
    Microsoft Windows Windows XP and Windows 2000
    \Documents and Settings\username\My Documents\My Music\iTunes\
    Microsoft Windows Windows Vista and Windows 7
    \Users\username\Music\iTunes\
    Drag the iTunes Library file from the above location to the Desktop.
    Open the Previous iTunes Libraries folder in the iTunes folder.
    Locate the file named iTunes Library YYYY-MM-DD where YYYY-MM-DD is the date you upgraded iTunes (Year-Month-Day).
    Drag this file to the iTunes folder (the enclosing folder).
    Rename this file to iTunes Library.
    Open iTunes.
    You should now see your missing content in iTunes.
    via: No content shows up in iTunes after updating
    http://support.apple.com/kb/TS1967
    If that doesn't resolve the issue, then I'd go through the steps in here:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Have a good one,
    Delgadoh

  • When i do initial set up w creative cloud set uo wont run send error message"installer failed to initialize" why and how can i get pass this

    When I do initial set up with creative cloud set up it wont run a send error message "installer failed to initialize" comes up. Why and how can I get passed this?

    Error "Installer Failed to Initialize" | Install desktop application | Windows

  • I keep getting the incoming messages bar appearing under mail activity and then all my old emails start to enter inbox. why and how do i stop this and permanently delete these emails?

    i keep getting the incoming messagrs bar appearing under mail activity and all my old emails start to fill my inbox.Why and how do i stop this and how do i permanently delete old e mails?

    Maybe this will help:
    https://discussions.apple.com/message/21026706#21026706

  • Tried to transfer all my data to iPhone 5 from iPhone 3GS lost my email and app data?  Do you why and how I can fix this?

    Hi...
    Tried to transfer all my data to iPhone 5 from iPhone 3GS lost ONLY my email and app data?  But weird thing is, its still on my old phone!!!
    Do you know why and how I can fix this? 
    Shelley

    How did you "try" to transfer this data? The only way to restore App data is by restoring from a backup that contains the App data, then syncing the Apps back to the phone. Emails are not included in any iPhone backup, only account settings.

  • I have Acrobat 9 Pro and when I print hard copies of my PDF letters drop off from sentences throughout the document. Any idea why and how to fix this problem?

    I have Acrobat 9 Pro and when I print hard copies of my PDF letters drop off from sentences throughout the document. Any idea why and how to fix this problem?

    Hi,
    We’re using Windows 7 Professional, Service Pack 1 and system type is 32-bit operating system.
    Ange

Maybe you are looking for

  • How do I clean my hard drive to re-sell without a working disc drive?

    I have macbook pro snow leopard. I wanted to clean my hard drive so all my files, informaion, and password get deleted so I can re-sell it. The problem is even though I have the installation disc, my disc drive isn't working... I tried putting my usb

  • Use of Synchronized  in jsp/servlet

    Can any one explain me the use of Synchronized in servlet/jsp which is multithreaded Is this correct synchronized should be used only when we want to pritect Static variable as they have only one copy but in case of instance variable they have sepera

  • Setting up video game through Verizon's A/V outlet on the box

    I found my old SNES, and I want to hook it up. I have the A/V outlet on the back of the verizon box (none on my TV). I'd like to hook it up and get it working. It's all plugged in, but i can't figure out how to get the game up and running on screen.

  • CATS INTEGRATION WITH PP AND PM MODULE ( TO FIND ACTUAL MANPOWER COSTING THROUGH ACTIVITY TYPE)

    Hi Experts, We have a scenario like, Client wants to track the actual manpower costing through activity type ( Ex: How much hours an employee worked on a particular work center to produce an "X" product, So that his actual cost should be loaded on th

  • Warning in extended program check

    Hi all,           While I waas doing code review, I found the following warning message. <b>Program:  ZCSRE_HU_PRODUCTION_REPORT  Include:  ZCSRM_HU_PRODUCTION_DATA  Line :     29 Field string LAGP is not referenced statically in the program</b> when