How to create Applet Hello World?

Ads
Ads

How to create Applet Hello World?


Java Coder
How to create Applet Hello World?
1 Answer(s)      a year and a month ago
Posted in : Java Beginners
Ads

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


Ads