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 meaning of immutable regarding string?
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
what is run time polymorphism
What is java algorithm?
Why java is call by value?
What are encapsulation, inheritance and polymorphism?
When will you define a method as static?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Why are the methods of the math class static?
Is multiple inheritance allowed in Java? Why ?
What is heterogeneous in java?