GeekInterview.com
Series: Subject: Topic:
Question: 31 of 1118

Java object variable and class variable

What is the difference between object variable and class variable..?
Asked by: iyyappanilr | Member Since Aug-2011 | Asked on: Sep 15th, 2011

View all questions by iyyappanilr

Showing Answers 1 - 1 of 1 Answers
SUMATHI

Answered On : 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.

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.