Why is the Java main method static?

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 Comment