Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Introduction to Java Applets

Share this post!
 Vote this!

Java was originally the first language that could run inside a web browser, this ability of java has made it famous and also allowed others to knock its programming prowess as it was deemed good for this purpose and this purpose only by some. The method that java used to run programs inside a web browser was by way of an applet.

A java applet is quite simply a program designed to run as part of a web page. When one encounters a java applet on the web, the applet is downloaded and begins running on the webpage. A good example of a java applet would be http://java.sun.com/...k/example1.html
(Ignore the code on that site for now, just focus on the clock example)

The applet itself is executed by the browser’s Java Virtual Machine (JVM).

Programming applets is rather different to coding a standard java program as the code must be adjusted to run on a webpage, this is most noticeable by not having a standard main method:  more...

0 comments:

Post a Comment