Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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.
 
PREVIOUS NEXT
Tagged: #public #static #void #main #static #public #void #main
ADD COMMENT
Topic
Name
5+9 =