![applet viewer program applet viewer program](http://3.bp.blogspot.com/-mBoQ1vhvVKc/UtvYthHFzjI/AAAAAAAAFpc/mZehlpXblxo/s1600/ChoiceTest.jpg)
Java has revolutionized the way the internet users retrieve and used document on the world-wide network. It can perform arithmetic operation, display graphics, play sound, accept user input, create animation, and play interactive games. An applet, like any application program can do many things for us. They can be transported over the internet from one computer to another and run using the applet viewer or any web browser that support java. Write an applet program which displays "AshaKrishna My Love"?Īnswer: /* */ import : – Java applets are small programs that are primarily used in internet computing. When we use appletviewer to run the above applet, MyApp.java program must contain the following tag within the multi line comment. Using HTML program: In order to run the applet through HTML program we must use the following tag.įile name: MyApp.html My applet example Using appletviewer:Īppletviewer is a tool supplied by SUN micro system to run the applet programs from the command prompt (in the case of browser is not supporting). They are using HTML program and using applet viewer tool. Run the applet: To run the applet we have two ways.
![applet viewer program applet viewer program](http://people.cs.uchicago.edu/~kaharris/10200/tutorials/eclipse/images/applet/Eclipse2.png)
![applet viewer program applet viewer program](https://image2.slideserve.com/5031741/jvm-java-virtual-machine-l.jpg)
In order to deal with applets we must import a package called java.applet.*. "An applet is a JAVA program which runs in the context of browser or World Wide Web". In JAVA, SUN micro initially has developed a concept called applets which runs in the context of browser. Any technology which runs in the browser will have 'n' number of life cycle methods and it does not contain main methods and statements. Every standalone application runs from command prompt and it contains main method along with statements.Ī distributed application is one which runs in the context of browser or World Wide Web and it can be accessed across the globe. They are standalone applications and distributed applications.Ī standalone application is one which runs in the context of local disk and whose result is not sharable. In JAVA we write two types of programs or applications.