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 |
What is the Difference between Final Class && Abstract Class?
When is the garbage collection used in Java?
How can I debug the Java security exceptions and AccessControlExceptions?
why should we get the following error ? Exception in main method NoClassDefFoundError:classname could anyone give the detail clarification on how java compiler can look for .class file?
Why is flag used in java?
What is called module?
What is the latest java version?
Can we assign integer value to char in java?
What are "methods" and "fields"?
What are the different ways of implementing thread? Which one is more advantageous?
Can we have two main methods in a java class?
What is percentage in java?