Styrow.dev
Question 7 of 247
Java Topic: General medium

Who calls the main method in java?

Question

Who calls the main method in java?

Answer

The Java Virtual Machine calls the main method in java.Main method in Java is the starting point of any standalone core Java application. JVM starts executing Java program from main method and the thread which executes main is called main thread in Java.