Although both the applets and stand-alone applications are
Java programs, there are significant differences, between them. Applets are not
full-featured application programs. They are usually written to accomplish a
small task or a component of a task. Since they are usually designed for use on
the Internet, they impose certain limitations and restrictions in their design.
Ø
Applets do not use the main () method for
initiating the execution of the code. Applets, when loaded, automatically call
certain methods of Applet class to start and execute the applet code.
Ø
Unlike stand-alone applications, applets cannot
be run independently. They are run from inside a Web page using a special
feature known as HTML tag.
Ø
Applets cannot read from or write to the files
in the local Computer.
Ø
Applets cannot communicate with other servers or
network.
Ø
Applets cannot run any program from the local
computer.
Ø
Applets are restricted from using libraries from
other languages such as C, C++.
All these restriction and limitations are placed in the
internet of security of systems. These restrictions ensure that an applet
cannot do any damage to the local system.
No comments:
Post a Comment