Difference between Applet & Application?

Answer Posted / hemant

The differences between an applet and an application are as
follows:

1. Applets can be embedded in HTML pages and downloaded
over the Internet whereas
Applications have no special support in HTML for embedding
or downloading.

2. Applets can only be executed inside a java compatible
container, such as a browser
or appletviewer whereas Applications are executed at
command line by java.exe or jview.exe.

3. Applets execute under strict security limitations that
disallow certain operations
(sandbox model security) whereas Applications have no
inherent security restrictions.

4. Applets don’t have the main() method as in applications.
Instead they operate on an
entirely different mechanism where they are initialized by
init(),started by start(),stopped
by stop() or destroyed by destroy().

Is This Answer Correct ?    238 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a singleton factory?

723


Which class is used by server applications to obtain a port and listen for client requests?

708


If you are given the name of the function at run time how will you invoke the function?

887


How do you use parseint in java?

714


What is the byte range?

791


What is the requirement of thread in java?

824


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

2189


How can we pass argument to a function by reference instead of pass by value?

823


Why do we need hashset in java?

722


Is singleton set an interval?

718


What is the maximum size of arraylist in java?

709


Explain the difference between protected and default access.

740


what are synchronized methods and synchronized statements? : Java thread

777


What loop means?

746


What is the multi-catch block in java?

774