6. What is the difference between an applet and an application ?

Applet

Application

Applets don’t have a main method. They operate on life cycle methods init(), start(), stop(), destroy() etc.


Has a static main() method.


Applets can be embedded in HTML pages and

downloaded over the Internet. Has a sand box security

model.


Has no support for embedding or downloading. Has no inherent security restriction.


Can only be executed within a Java compatible

container like browser, appletviewer etc.


Applications are executed at command line by

java.exe.





No comments:

Post a Comment