what is applet programming?
Applet Programming
What is applet programming?
• An applet is a java program that runs in a web browser.
• An applet is a java class that extends the java.applet.Appet class.
• No main() method.
• Applet are designed to be embedded within an html page.
• JVM is required to view an applet.
• Applet have strict security rules that are enforced by the web browser.
What is life cycle of applet?
Methods in life cycle of applet
init() → Method that initializes the applet. Invoked once at the time of initialization.
start() → Method that contain the actual code of the applet and start the applet. Invoked immediately after the init() method invoked.
stop()→ Method that stop execution of the applet. It is invoked whenever applet is stopped, minimized or moving from one tab to another.
destroy() → It destroy after work is done. Invoked when applet window is closed.
Comments
Post a Comment