An applet is a special kind of Java program which is used
for internet programming. The applets reside in a server and they can be
downloaded from the server to the client machine and executed on client machine
provided that the browser should be enabled with Java technology. Applets are
basically of two types.
Local Applet – These are applets which are created for
standalone PC's where the same PC is distinguished as server and client. Hence,
to execute a local applet there is no need of internet connection.
Remote Applet – The applets which are developed for an
environment where the server and the client machine are physically apart from
each other are called remote applets.
In order to locate and load the remote applet we must know
the applet address on the web. This address is known as the URL. The difference
between a Java applet and a Java application is that a Java application runs
standalone, i.e. outside the browser while an applet runs in the context of a
web browser, embedded within an HTML page.