what is difference between class and object?

Answer Posted / annie

Object is a real world entity.It can be similar to any single real thing of this world regardless of living and non-living thing,e.g.,a parrot or a room.
When objects that share similar features like behaviour,characteristics..etc. when grouped together can be termed as a class, e.g.,parrot can be an object of class bird, and room can be a object of class building.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will happen if a thrown exception is not handled?

566


How to read and write image from a file ?

561


Can we serialize static variables in java?

657


What is the default size of load factor in hashing based collection?

568


Java Compiler is stored in JDK, JRE or JVM?

1052






Why do we need wrapper class?

537


What is null statement?

539


What is jar?

637


What is java util hashmap?

522


Explain how can you debug the Java code?

592


What does the append?

499


How does finally block differ from finalize() method?

589


What is private public protected in java?

572


What is unsigned char?

629


What is compareto?

546