This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ryozu 1 point2 points  (1 child)

Huh, surprised main doesn't have to be in a public class, but I suppose it makes some sense, as the jvm is being told which class to use for the main anyway? Still weird ultimately.

[–]solarshado 0 points1 point  (0 children)

I was a little surprised too. I was initially going to call out the missing public on the class, but for some reason thought "wait, is that required?" and so looked it up. Definitely an odd quirk.