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 are the two types of exceptions in java? Which are the differences between them?

790


What is the maximum size of hashmap in java?

752


What is bytecode verifier?

714


what is the use of bean managed and container managed with example?

1746


What are checked exceptions?

813


Can we convert integer to string in java?

836


What is array sorting in java?

797


worst case complexities of Quick sort and Merge sort.

804


What is the difference between reader/writer and inputstream/output stream?

790


What is the method to expand and collapse nodes in a jtree?

821


Why put method is used?

775


What are the types of exceptions?

808


What is http client in java?

777


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

781


Difference between concurrent hashmap and hashtable and collections

814