explain the basic applet life cycle 1the browser


Explain the Basic Applet Life Cycle ?

1. The browser reads the HTML page and seraches any tags.
2. The browser parses the tag to search the CODE and possibly CODEBASE attribute.
3. The browser downloads the .class file for the applet from the URL found in the last step.
4. The browser converts the raw bytes downloaded within a Java class that is a java.lang.Class object.
5. The browser instantiates the applet class to form an applet object. This needs the applet to have a noargs constructor.
6. The browser calls the applet's init() method.
7. The browser calls the applet's start() method.
8. Although the applet is running, the browser passes any events intended for the applet, e.g. mouse clicks, key presses, etc., to the applet's handleEvent() method. Update events are used to tell the applet that it needs to repaint itself.
9. The browser calls the applet's stop() method.
10. The browser calls the applet's destroy() method.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: explain the basic applet life cycle 1the browser
Reference No:- TGS0285121

Expected delivery within 24 Hours

©TutorsGlobe All rights reserved 2022-2023.