In this program, we are going to share Print Hello World using Java Applet program with the output. If you are a Java beginner and also want to learn applet programming using Java programming, then keep your close attention in this tutorial as I am going to share how to write a java applet to print Hello World!
In the below program, we have used
drawString() function to create a graphics and print the “Hello World!” message on that graphics.
public class HelloWorldApplet extends Applet
public void paint (Graphics g)
g.drawString ("Hello World!", 30, 45);
Liked this program? Do Like & share with your friends.