<applet code=Example2 width=500 height=300> <param name="width" value="100"> <param name="height" value="200"> </applet>Let us look at an example.
| The browser/appletviewer loads the applet |
| The init() method in the applet is executed |
| The start() method in the applet is executed |
| thread.start() | causes the thread to begin executing. The run() method is then called. |
| thread.suspend() | temporarily halts the execution of the thread. |
| thread.resume() | resume execution of the thread |
| thread.stop() | permanently stops the execution of the thread |