Computer problems,Computer help
*AX SOFT>>>Software

If we have 2 main methods in a java pgm then what will happen?


& also how to get java free online?

When you launch a java app you specify the class that contains the main method. Each class can only contain one method with the right name and signature (if it didn't it wouldn't compile).

It's quite common to have main methods in multiple classes with all but one of them acting as test code to test the classes in isolation.

Java can be downloaded from http://java.sun.com/javase/downloads/ind...

It can not be possible according to java rules.

Only one thing can occur that is ERROR. It will state that a main method is already define. The purpose of a main method is to run your program, what do you need a second main method for??

There can not be two main methods. You can not compile a program with two main().

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook
Related information
  • 32bit To 64bit?

    Just pop in the 64 bit dvd and restart your computer, booting from the dvd. It then begin installing. But really there is no point in going to 64bit unless you have over 4 gb of RAM

    ...
  • Why run "chkdisk/f " on windows home XP?

    This pop-up ballon comes due some unwritten cache or temporary files while installations or viewing websites. Its the basic line of defense of Windows XP to protect your computer from viruses and m...

  • What music store can I use for downloads (I need a track in WAV fomat)?

    Forget zune What Microsoft has created is a new form of viral DRM. Zune will intentionally infect your music with the DRM virus before passing it along to one of your friends. After three liste...

  • The best software to update my drivers ?

    Update them manually, one by one. Otherwise you can get into serious troubles without knowing even what is wrong. I speak from experience. Anyway the procedure is simple: 1 - obtain driver: from ...

  • How do I setup my Blackberry E-mail account (T-mobile) to Microsoft Outlook or an easy webmail client?

    I Would advise you call T-Mobile, as i think they set something up there end to enable Emailing. But, you will also need your POP3 Account Details. Username, Email address, Password, Server In,...

  • Anybody know where I could get a Napster t-shirt?

    ...

  • Reinstalling vista?

    yes u can yip

    ...
  • Purchase of software..?

    Version 7.2 was offered from Jasc. Corel took over Jasc in 04 along with its rights while version X was out. Since then they have updated several times. Amazon doesn't even have one right n...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster