Java - What are methods that controls an applet’s life cycle, i.e. init, start, stop and destroy?
What are methods that controls an applet’s life cycle, i.e. init, start, stop and destroy? Life Cycle of an Applet: Basically, there are four methods in the Applet class on which any applet is built.
- init: This method is intended for the initialization of your applet and is called after the param attributes of the applet tag. - start: This method is automatically called after init. - stop: This method is automatically called whenever the user moves away from the page containing applets. - destroy: This method is only called when the browser shuts down normally.
|