0 votes
Why we write public static void main in Java program?

1 Answer

0 votes
Java JVM will always look for specific method signature to start running an application, and that would be public static void main (String args[]). Here args is an argument of type String array. Public means that this Method will be accessible by any Class(If other Classes can access this Class.).
...