va.import java.awt.*;import java.awt.event.*;public class HelloFrame extends Frame 
Java Applet.Java Applet用于HTML文件。HTML代码：<html><head><title>Hello World</title></head><body>HelloWorld Program says:<applet code="HelloWorld.class"