The method signature of a Java mainmethod is:

public static void main(String[] args) {
    ...
}

Is there a reason why this method must be static?

37 s
37

Leave a Reply

Your email address will not be published. Required fields are marked *