An applet is a Java program that runs in a web browser. Applets extend the Applet class and have a lifecycle of init(), start(), stop(), and destroy() methods. Applets are embedded in HTML pages and have security restrictions enforced by the browser. When a user views an HTML page containing an applet, the applet code is downloaded and a JVM instance is created to run the applet.