This applies to subclasses of Applet, Servlet, Midlet, etc.
Why do they not need a main()? If I wanted to create a Craplet class that start
main()
Craplet
Applet do not use main() because when applet is loaded it automatically calls certain methods of applet class to start and executes the applet code. and applet have its own life cycle.