Core Java - [Applet Fundamental]

♠ Posted by Unknown in at 20:50

Applet Fundamentals


Applets are small Java programs that are primarily used in Internet computing. They can be transported over the Internet form one compute to another 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, accepts user input, create animation, and play interactive games.

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.

Applet v/s Application

1.     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.
2.     Unlike stand-alone applications, applets cannot be run independently. They are run form inside a Web page using a special feature known as HTML tag.
3.     Applets cannot read from or write to the files in the local computer.
4.     Applets cannot communicate with other servers on the network.
5.     Applets cannot run any program form the local computer.
6.     Applets are restricted from using libraries from other languages such as C or C++.

1 comments:

Thanks for sharing this good blog. It's very interesting and useful for students
Java Online Course

Post a Comment