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.
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.