in a console we r giving java <class name> if r pressing
enter where it'll goes
Answer Posted / 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 |
Post New Answer View All Answers
What is a local, member and a class variable?
What does snprintf return?
Can we create a constructor in abstract class?
Is Java a dying language?
What are constants and how to create constants in java?
What is a void method java?
what is a green thread? : Java thread
What is collections framework?
What is double checked locking in singleton?
Explain about field hiding in java?
Can we define private and protected modifiers for variables in interfaces?
What is thread count in java?
What does singleton mean in java?
What is an immutable object?
What is appletviewer?