Home > Software > Java > Core-Java
Interview Questions   Tutorials   Discussions   Programs   

Core-Java - What is difference between class and object?

asked marvit September 16, 2014 10:28 PM  

What is difference between class and object?


1 Answers

answered By Madhumathi   0  

Class and Object are two most important concept of Object oriented programming language (OOPS) Java.

Class and Object are related to each other because every Object must be type of any class.

A Class is blueprint which means you can create different objects out of it .

An Object is an instance of the class . Objects also have a state and behavior. A object's state is stored in fields and behavior is shown via methods.

   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!