Monday, May 7, 2007

What is the difference between Application and Applet?

An applet runs in client side web browser. A class extending java.awt.Applet class which has methods like init(), start(), stop(), destroy(),paint() overridden.An applet has restriction of accessing client side resources like network connections, it cannot open socket connections and cannot write to client side files i.e. hard disk.
An application runs standalone with a support of virtual machine. An application does not have nay restrictions as Applets have over network and file related activities.They are free to open sockets over a network read and write to a file.

0 comments :

 

Disclaimer
Interview Questions On Java,Java EE Copyright © 2016. Reads: best tracker