Requirements
Besides the classes, an applet requires a .html file and a tool for viewing the applet (Ex: appletviewer of JDK)
An applet extends Applet class of java.applet package.
import java.applet.Applet;
An applet should have at least an init() or a paint() method (just as an application should have main() method)