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 methods would you overwrite in java.lang.object class?
What is immutable in java?
What is the Scope of Static Variable?
How to sort an array from smallest to largest java?
What are the restrictions imposed on method overriding?
List out benefits of object oriented programming language?
State the merge-sort principle and its time complexity.
How do you compare values in java?
Explain super keyword in java.
What is jit and its use?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What is main in java?
What does percent mean in java?
What is final?