Answers for "difference between void and static and public"

1

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.
Posted by: Guest on March-31-2021

Code answers related to "difference between void and static and public"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language