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 string and its types?
What is final class?
What is type conversion in java?
How do you make a thread in java?
Can we use return in constructor?
does java support pointers?
What restrictions are placed on method overloading?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What is the syntax and characteristics of a lambda expression? Explain
What is dot operator?
What is a short in java?
What is the console in java?
What does you mean in math?
What is a private class in java?
What is static keyword in java?