ExamVeda
Login
Home
Constructors and Methods
?

The main method should be static for the reason

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

2 Comments
Sumit Kumar
Sumit Kumar 5 years ago
In the case of the main method, it is invoked by the JVM directly, so it is not possible to call it by instantiating its class. And, it should be loaded into the memory along with the class and be available for execution. Therefore, the main method should be static.
Elly Mangat
Elly Mangat 6 years ago
Ooo thank u so much veere....nheeriyan dhaa tiyan veere....aggarwaal da phoosa paad ta veere