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 |
What is the base class for error and exception?
What is derived datatype?
What is left shift and right shift?
Why do we need strings in java?
class A{ class B{ } } in which name u save the file,its the program compile?
Write the code for Palindrome ?
'A class is a template for an object' explain this statement.
0 Answers Akamai Technologies,
What is method Overriding in the perspective of OOPS?
i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
What is the Vector class?
Why main function is static?