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 are the types of inner classes (non-static nested class) used in java?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is parsing in java?
What is runtime locatable code?
What is the difference between a method and a procedure?
Differentiate between run time error and syntax error.
What are the advantages of compiled language?
What is the escape character in java?
Describe the various concepts related to object oriented programming (oop).
List out benefits of object oriented programming language?
What is the use of put method?
How do you find the absolute value?
What is object-oriented programming?
What is identifier give example?
Is multiple inheritance supported by java?