The applet is a Java program that can be embedded into a web page. It runs inside the web browser and works on client side. The applet is embedded in an HTML page using the APPLET or OBJECT tag and hosted on a web server.
Applets are used to make the website more dynamic and entertaining.
The following are the features of Java Applet:
- All applets are sub-classes (either directly or indirectly) of the applet. Applet class.
- Applets are not stand-alone Instead, they run within either a web browser or an applet viewer. JDK provides a standard applet viewer tool called applet viewer.
- In general, the execution of an applet does not begin at the main()
- Output of an applet window is not performed by out. println(). Rather it is handled with various AWT methods, such as drawString().