what is difference between class and object?

Answer Posted / lolo

OBJECT

A software bundle of related state and behavior. Stores the
state in fields and express its behavior through methods.
The methods operate on an object's internal state. Object
is a Physical reality.

CLASS

We can define a class as a blueprint from which the
individual objects are created. Uses a new operator to
create the instance of the class. Class is a logical
construct.

Is This Answer Correct ?    84 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of inner classes?

507


What is math floor in java?

470


Can keyword be used as identifier?

543


What is volatile keyword in java

642


Java.util.regex consists of which classes?

540






Explain throw keyword in java?

608


What is hashing in java?

562


If you do not want your class to be inherited by any other class. What would you do?

559


What is super constructor?

545


What is the difference between int and integer in java?

507


What is a numeric literal?

521


What is a hashmap used for?

640


Why string is called as immutable?

522


Difference between overriding and overloading in java?

573


What is the best way to findout the time/memory consuming process?

554