How to create Applet Hello World?

Hi,

What is Applet in Java?

How to create Applet Hello World?

Thanks

View Answers

April 16, 2017 at 5:48 PM

Hi,

Applet is Java Program that runs in browser. Browser should be Java enabled to run a program.

You have to create applet class in Java and then compile it into class file. After compilation it should be embedded into the html page.

You can use the following code for embedding it into the HTML page:

<APPLET CODE="HelloWorldApplet.class" WIDTH=700 HEIGHT=500>

Java - Applet Hello World.

Thanks









Related Tutorials/Questions & Answers:
Advertisements