Applets are small java programs that are primarily used in Internet computing. They can be transported over the internet from one computer to another the computer and run using the Applet Viewer or any Web browser that supports java.An applet,like any application program,can do many things for us.It can perform arithmetic operations,display graphics,play sounds,accept user input,create animation and play interactive games.Java has enabled them to create and use fully interactive multimedia We documents.A web page can now contain only a simple text or a static image but also a java applet which,when run can produce graphics sounds and moving images.
Local And Remote Applets:- We can embed applet into web pages in two ways. One,we can write our own applets and embed them into Web pages.Second, we can download an applet from a remote computer system and then embed it into a web pages.
An applet developed locally and stored in a local systems known as local applet.When a Web page is trying to find a local applet,it does not need to use the internet and therefore the local system does not require the internet connection.
A remote applet is that which is developed by someone else and stored on a remote computer connected to the internet.If our system is connected to the internet,we can download the remote applet onto our system via at the internet and run it.
In order to locate and load a remote applet,we must know the applet’s address on the web.This address on the web is known as Uniform Resource Locator(URL) and must be specified in the applet’s HTML document as the value on the CODEBASE attribute.