public static and public void code example
Example 1: java public static void main
public static void main(String[] args){
}
Example 2: public static void main vs static public void main
If you write static public void main instead of public static void main,
then it will make no difference. Program compiles properly and runs.
But if you change the sequence of main,
then it will you give a compiler error.