What if I write static public void instead of public static void?

DWQA QuestionsCategory: JavaWhat if I write static public void instead of public static void?
Editor Staff asked 10 months ago

What if I write static public void instead of public static void?

1 Answers
Editor Staff answered 10 months ago

The program compiles and runs correctly because the order of specifiers doesn’t matter in Java.