what is difference between class and object?
Answer Posted / deen muhammad
I think a class is the superset of an object and object is
subset of a class.
A class contain so many objects but an object only belongs
to one class
example: A human being is a class while its body parts are
the objects of that class.
| Is This Answer Correct ? | 11 Yes | 8 No |
Post New Answer View All Answers
What is thread safe singleton?
What are the methods available in a class?
Explain the use of shift operator in java. Can you give some examples?
What is Java Annotations?
What is diamond operator in java?
Compare java and python.
What is flush buffer?
Where is singleton pattern used?
How do you remove an object from an arraylist in java?
What is function and its uses?
What super () does in java?
What is merge sort in java?
What is a singleton factory?
When we serialize an object does the serialization mechanism saves its references too?
What is polymorphism java example?