Java object variable and class variable

What is the difference between object variable and class variable..?

Questions by iyyappanilr

Showing Answers 1 - 3 of 3 Answers

SUMATHI

  • Oct 6th, 2011
 

A Class is a template.
An object is an instance of class.
Every data member of an object contains its own value, where as Class only declares the data members.

class contains one or more related objects.Every object belongs to a class.

class is a group of objects that share common properties and responsibility.Object is a identifiable entity with some characteristics and behaviour.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions