we have a 100 classes at that time which class we have to
write main method? pls help me
Answers were Sorted based on User's Feedback
Answer / ankit sangal
we should write the main method in that class from where we want to start the compilation.
| Is This Answer Correct ? | 16 Yes | 1 No |
Answer / pravallika
we can write main method in any class is possible.
| Is This Answer Correct ? | 9 Yes | 1 No |
Hey All,
I Think if we have 100 class we write main method wihin
any class just we should mention class name in mainifest
file before calling.mainfest main work is tp provide main
class name to jvm.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / pravallika
But compile time point of view main method is not required.so we can write main method in any one class is possible.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / john kennedy
The class which has the connection or relationship with all
other classes can be main class.
| Is This Answer Correct ? | 0 Yes | 0 No |
why we write public static void main (String args[]) in core java plz explain briefly??????????????????
whats is inheritance?
15 Answers CTS, HCL,
What is a variable analysis?
what are the difference between Java and .Net?
Why java is called not pure object oriented language?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
How to obtain a performance profile of java program
What is udp in java?
Difference between a class and an object?
how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application
What is http client in java?
What is difference between filereader and bufferedreader?