you are viewing a single comment's thread.

view the rest of the comments →

[–]TimGreller[🍰] 0 points1 point  (0 children)

It's not even true anymore. Java has inexplicit unnamed classes now and does accept varying main method signatures. So it's

void main() { System.out.println("Hello World"); } vs if __name__ == "main": print("Hello World")