You are on page 1of 1

Applet is a container which is embedded into the webpages.

Difference between Applet and normal java programs:


1.)Applet programs dont have main functions in it.
2.)It runs on a web browser,not on jvm.
3.)These are embedded with html pages on websites and applications.
4.)For writing applet programs we have to import java.applet.Applet class in
program.

Life cycle of an applet:


1. init() :Can be called only once in a lifecycle of an applet.
2. start()
3. stop()
4. destroy()

paint(): called after the start()

You might also like