| Author |
any one tell me?
|
manish kr. pandey
Greenhorn
Joined: Aug 30, 2011
Posts: 14
|
|
the main method of java
public static void main(String x[])
in which class this method belong?
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3793
|
|
Welcome to The Ranch!
Quick answer: whichever class you want to start the program in.
That method isn't part of the standard Java libraries. It's a particular signature that the Java run-time will look for whenever you try to "execute" a class.
|
 |
fred rosenberger
lowercase baba
Bartender
Joined: Oct 02, 2003
Posts: 9948
|
|
|
Some folks might say "all of them". You can write a project with hundreds of classes, and each and every one can have a main method.
|
Never ascribe to malice that which can be adequately explained by stupidity.
|
 |
 |
|
|
subject: any one tell me?
|
|
|