How does the JVM use the “Main method” to start a Java program? [duplicate]

main doesn’t need to be a keyword in java in order for the JVM to look for it at the start of execution. There is no conflict with other methods or variables also called main. This is simply how the JVM spec was designed. It was most likely borrowed from the c language.

Java Specification References: keywords, invoking main.

Leave a Comment