Yes. While starting the application we mention the class name to be run. The JVM will look for the main method only in the class whose name you have mentioned. Hence there is not conflict amongst the multiple classes having main method. | 5 |
By: [email protected] On: Thu May 16 02:07:03 EDT 2013 14 44 2 | 60 |
Are You Satisfied :4Yes5No |
We can overload main method but we can not override it. So , we can have many main methods in a class. | 3 |
By: [email protected] On: Thu May 16 04:59:13 EDT 2013 29 63 0 | 92 |
Are You Satisfied :6Yes1No |
It is possible in java.. class A { public static void main(string args[]) { } public static void main(string args[]) {} public static void main(string args[]) { } public static void main(string args[]) {} } | 0 |
By: [email protected] On: Sat May 18 14:27:19 EDT 2013 15 0 0 | 15 |
Are You Satisfied :2Yes4No |