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

Is an empty arraylist null?

603


Is string a wrapper class?

519


How many types of methods are there in java?

530


What is difference between java and java ee?

559


What is a instance variable in java?

555






what is an objects lock and which objects have locks? : Java thread

542


Are primitives objects?

567


What is serialization in java?

570


Tell us something about different types of casting?

523


When will you define a method as static in Java?

576


What is map in java?

522


What does math floor () do?

561


Differentiate between stringbuffer and string?

601


Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)

1352


How can you set an applet’s height and width as a percentage?

517