Free Data Structures and Algorithms Course









Subscribe below and get all best seller courses for free !!!










OR



Subscribe to all free courses

Applet Advantages and Restrictions

What is an Applet in Java ?
An Applet is a small java program that runs in a Java enabled web browser. Java Applet is a small piece of java code that is embedded into HTML page, which gets executed when the HTML page loads into the browser.Applets provide powerful client-side functionality. As applets are loaded from remote machines and executed on client-side, there are various security restrictions on applets. Let us look into various Applets advantages and Applets Restrictions in brief :

Applet Advantages
Applets have many advantages over stand-alone application. Some of them are :

  1. As applet is a small java program, so it is platform independent code which is capable to run on any browser.
  2.  Applets can perform various small tasks on client-side machines. They can play sounds, show images, get user inputs, get mouse clicks and even get user keystrokes, etc ... 
  3.  Applets creates and edit graphics on client-side which are different and independent of client-side platform.
  4. As compared to stand-alone application applets are small in size, the advantage of transferring it over network makes it more usable.
  5. Applets run on client browser so they provide functionality to import resources such as images, audio clips based on Url's.
  6. Applets are quite secure because of their access to resources.
  7. Applets are secure and safe to use because they cannot perform any modifications over local system.
  8. Various small tasks such as performing login, inventory checking, task scheduling can be done by applets running over Intranets. 


Applets Restrictions
Applets have many restrictions over the areas of security because they are obtained from remote machines and can harm client-side machines. Some of them are as follows :

  1. If we are running an applet from a provider who is not trustworthy than security is important. 
  2. Applet itself cannot run or modify any application on the local system.
  3. Applets has no access to client-side resources such as files , OS etc. 
  4. Applets can have special privileges. They have to be tagged as trusted applets and they must be registered to APS (Applet Security Manager). 
  5. Applet has little restriction when it comes to communication. It can communicate only with the machine from which it was loaded. 
  6. Applet cannot work with native methods. 
  7. Applet can only extract information about client-machine is its name, java version, OS, version etc ... .
  8. Applets tend to be slow on execution because all the classes and resources which it needs have to be transported over the network. 
 
© 2021 Learn Java by Examples Template by Hubberspot