answersLogoWhite

0


Best Answer

Posted by : Govind Singh Lodhi

these are the following differences between java class and object.

1. Class is a way of bind data member and method in single unit where as a object is a value form of a class or a instance of a class that means allocating sufficient amount of memory space.

2. When we define a class ,there is no memory space allocated for data member of a class where as when we create a object of a class memory space is allocated for data members of a class.

3.Class will have exist logically where as object will have exist physically.

4.One class can have only one name where as corresponding one class we can create multiple object.

5.Class load in main memory by using class loader subsystem where as after load class we can create multiple objects of a class.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

A class is a type while an object is an instance of a type.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

A class is the definition of a type. An object is an instance of that type.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between classes and objects?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is difference between links and association?

links are associated with objects and associations are associated with classes.


What is Difference between C structers and classes?

through classes we can create objects and we can implemented businessmathods. in case of structres we can create streuctre variables but not methods this is the major difference


Difference between links and association in object orinted analysis and design?

link is related to objects whereas association is related to classes


What's the difference between Classes 375 377 and 379?

The difference between the Classes 375 377 and 379 is the services that are provided to the customer.


What is the difference between classes of IP addresses?

difference between ip address and class


What is the difference between a whole number a?

A question about "the difference between" requires two objects!


Determined by the distance between objects and the difference in mass between the objects?

The distance between objects and the different is 0. The distance between the mass and an object is 1.


What's the difference between the British Rail Classes 313 315 and 317?

The difference between the British Rail Classes 313,314 and 317 is the different locations in which they are used.


What is the difference between a objects speed and an objects velocity?

Velocity also includes direction.


What is the most significant difference between the holdovers and animals in all other classes?

what's the most significant difference between the holdovers" and animals in all other classes. what's the answer.


What are 2 difference between Pluto?

You need two objects between which you can have differences!


What does Difference Between discuss on their website?

The website Difference Between discusses on their website a number of different terms and objects. Site visitors can find various information regarding differences between objects and terms.