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:

  1. All applets are sub-classes (either directly or indirectly) of the applet. Applet class.
  2. 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.
  3. In general, the execution of an applet does not begin at the main()
  4. Output of an applet window is not performed by out. println(). Rather it is handled with various AWT methods, such as drawString().