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
Is an empty arraylist null?
Is string a wrapper class?
How many types of methods are there in java?
What is difference between java and java ee?
What is a instance variable in java?
what is an objects lock and which objects have locks? : Java thread
Are primitives objects?
What is serialization in java?
Tell us something about different types of casting?
When will you define a method as static in Java?
What is map in java?
What does math floor () do?
Differentiate between stringbuffer and string?
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)
How can you set an applet’s height and width as a percentage?