- Applets are small Java applications that run within web pages. They are executed by a web browser or applet viewer once they have been compiled into class files.
- Applets have lifecycle methods like init(), start(), stop(), and destroy() that are called at different points in the applet's execution. The paint() method handles redrawing the applet's display.
- Applets can use methods like drawString() to output text and repaint() to refresh their display. Parameters can be passed to applets via the HTML <applet> tag and retrieved using getParameter().