Why do applets not need a main()?

前端 未结 5 2152
长发绾君心
长发绾君心 2020-12-03 22:08

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

5条回答
  •  独厮守ぢ
    2020-12-03 22:15

    'main' is just a convention that C, C++ and java commonly support, but for example, if you write C or C++ directly against the Win32 API, you don't have to have main(), but instead you have WinMain.

提交回复
热议问题