- Java applets allow Java programs to run within web browsers. All applets extend the Applet class and override lifecycle methods like init(), start(), stop(), and destroy().
- To create an applet, you define its structure using these lifecycle methods and draw to the screen using the Graphics object's drawing methods. Applets are compiled and run within HTML using the <applet> tag.
- Applets differ from standalone Java applications in that they have security restrictions and run within a web browser rather than having their own execution environment. The Graphics class provides methods for drawing various shapes, text, and images to the applet display area.