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 does 0 mean in boolean?
Give few difference between constructor and method?
What is ‘is-a ‘ relationship in java?
How does remove work in java?
How many bytes are there?
Can you declare a private method as static?
What are some characteristics of interference class?
how do I create a runnable with inheritance? : Java thread
How will you load a specific locale?
What is the use of object and class classes?
Why java is object oriented?
How to sort elements in a parallel array in java?
What is super?
What is += mean in java?
What language is an assembler written in?