What is the purpose of the main method in Java?

The main method is the entry point of your Java App. Whenever you execute a program, the main is the first function to be executed. You can call other functions from main to execute them. In a standard app, there is one main function which uses other classes’ instances to function.

For More Information Please Refer: https://www.quora.com/Why-is-the-main-method-in-Java-important