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 |
Explain about wait() method?
Do you need to import math in java?
Can we override constructor in java?
How to do encapsulation in java?
What is size () in java?
What is bean? Where it can be used?
What is r * in math?
How are the elements of a gridbaglayout organized in java programming?
What is a for loop in java?
What are different type of exceptions in java?
what are the uses of Class class and what it returns? explain it with the example code.
How do you clear a list in java?