This is a simple "Hello World" program written in Java using Applet.
-
Compile the Java code:
-
Run the applet using the appletviewer:
- The program defines a class
HelloWorldApplet
that extendsApplet
. - It overrides the
paint
method to draw "Hello World" on the applet window. - The
drawString
method from theGraphics
class is used to draw the string.