Skip to main content

Timeline for Why is the Java main method static?

Current License: CC BY-SA 2.5

6 events
when toggle format what by license comment
Apr 24, 2016 at 2:34 comment added user207421 @DavidArno It would make more sense to say that the convention follows the language specification.
Jul 15, 2012 at 12:20 history made wiki Post Made Community Wiki by A.H.
Sep 28, 2008 at 19:57 history edited Logan CC BY-SA 2.5
clase -> class
Sep 28, 2008 at 19:55 comment added David Arno The language spec itself follows the convention. There is no actual requirement for the Java designers to have opted for requiring a static main. However, as Logan explains, the alternatives are more complicated.
Sep 28, 2008 at 19:51 comment added Rob It's not a convention; it's part of the language specification; the runtime won't recognise a class without a static main method as a valid entry point.
Sep 28, 2008 at 19:47 history answered Logan CC BY-SA 2.5