Java Applet runs without a main method?

前端 未结 4 2136
野性不改
野性不改 2020-12-11 04:51

I was running a Java class that extends Applet implements Runnable and apparently the program can run, but there is no main method. I thought Java

4条回答
  •  余生分开走
    2020-12-11 05:49

    Copied from google results:

    Applets are standalone programs which require a third party tool for its execution that is either it is java enabled web browser or applet runner. So it doesn't have main(). It is possible to run a program without main.

    Possible duplicate of:
    Why do applets not need a main()?

提交回复
热议问题