The main() method is the entry point for standalone Java applications. : main method « Java Source And Data Type « SCJP






The main() method must be public. 
It is static so that it can be executed without constructing an instance. 
The return type must be void.


public class MainClass{
    public static void main(String[] args){
    }
}








1.19.main method
1.19.1.The main() method is the entry point for standalone Java applications.
1.19.2.The argument to main() is a single-dimension array of Strings
1.19.3.The main() method's void keyword must appear immediately before main().
1.19.4.The public and static keywords for main method may be interchanged.
1.19.5.This argument for main method may be defined as String[] args or String []args or String args[].
1.19.6.The args argument for main method may use any valid identifier.
1.19.7.How command-line arguments are accessed using the args array.