mainmethod can be put in any class.
maincreates an object of its own class. Moving
mainto its own class is simple, and makes the code easier to understand.
mainmakes it easier to change between an application and an applet without confusion. It's possible to put
JAppletsubclass, but again it leads to confusion with no special advantage.
mainin any class, if you're comfortable with it.