-
in
1.3 Why do I need public static void main(String[] Public static void main(string [] args) this method? The
section may solve your problem. You can read it carefully or in the source blog:
-
The main method is the entry method for Java programs, and the JVM looks for the main method first when it runs the program.
The return value of themain method must be void, qualified by the static and public keywords.