Why main method is called first in java?



Why main method is called first in java?..

Answer / Pulkit Raj Saxena

The main method is called first when running a Java program because it serves as the entry point for program execution. The JVM starts by finding and executing the main method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is hashmap and map?

1 Answers  


What is a class reference?

1 Answers  


Why put method is used?

1 Answers  


Why singleton is not thread safe?

1 Answers  


can any one tell me when do u go for inheritance and polymorphism

3 Answers  


What is difference between synchronize and concurrent collection in java?

1 Answers  


What is a Java switch statement, and how can it be used?

2 Answers  


What are non-access modifiers?

2 Answers   Cognizant,


How do I compare two strings in word in java?

1 Answers  


What are class members by default?

1 Answers   Hexaware,


what is meant wrapper classes?

1 Answers  


What is the difference between jdk and jre?

1 Answers  


Categories