Main method is entry point of program. you can define multiple mainmethod in each class. Main method is called or invoked by jvm(java virtual machine).
you can define main method inside interface. And .class file is also created for interface.
Syntax: public static void main(String [] x) { } //x is reference,it can be your name also.
public static void main(String x []) { //it is compulsory to add subscript. }
public static void main(String... x) {
}