in a console we r giving java <class name> if r pressing
enter where it'll goes
Answers were Sorted based on User's Feedback
Answer / srujan jack
it transfers the class name to JVM then the JVM calls main() method using class name.
there fore the main() method must be declared with public & static.....
| Is This Answer Correct ? | 2 Yes | 0 No |
How many types of exception can occur in a java program?
what is a thread pool in java and why is it used?
What is mysql driver class name?
What is Java Reflection API? Why it’s so important to have?
when,where and how to use abstract class and interface
How to make a read-only class in java?
What is use of super keyword?
How many threads does a core java have?
Why is the main method static?
Why convert an applet to an application?
How many bytes is double?
What is float in java?