Applets implements functionality of a client. Applet is a dynamic and interactive program that runs inside a Web page displayed by a Java-capable browser. We don’t have the concept of Constructors in Applets. Applets can be invoked either through browser or through Appletviewer utility provided by JDK.
Following are methods in the life cycle of an Applet:
When an applet begins, the AWT calls the following methods, in this sequence:
When an applet is terminated, the following sequence of method calls takes place :
We can pass parameters to an applet using <param> tag in the following way:
Access those parameters inside the applet is done by calling getParameter() method inside the applet. Note that getParameter() method returns String value corresponding to the parameter name.
Use the parseInt() method in the Integer Class, the Float(String) constructor or parseFloat() method in the Class Float, or the