How to create Applet Hello World?

Ads

 
 

Share on Google+Share on Google+

Java Coder
How to create Applet Hello World?
1 Answer(s)      6 months and 3 days ago
Posted in : Java Beginners

Hi,

What is Applet in Java?

How to create Applet Hello World?

Thanks

Ads
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









Ads

 
Advertisement null

Ads