Thursday, January 28, 2010

CHAPTER II Applets

CHAPTER -II-Applets


As mentioned earlier,java is used to create two types programs.
* Stand alone Applications
* Applets
The most important use of Java is executable component can be distributed across Internet.Applet comes under this ctegory.Applets can be downloaded from any remote web sites and can be interpreted by the browser in your programs .Main uses of Applets are

  1. Display Graphics

  2. Accept user inputs to java applications.

  3. Creating Animation

  4. Playing interactive games.



Different from applicaion.

  1. No main() function to invoke execution.Applet when loaded,automatically cal methods of

    Applet classto start and execute applet codes

  2. Can not run independently.It runs only from inside web page
  3. Can not read from or writeinto files in to files in localdisk
  4. Can not communicate with other servsers except from hich it is down loaded
  5. Can notrun any program from li>