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
What are the advantages of inner classes?
What is math floor in java?
Can keyword be used as identifier?
What is volatile keyword in java
Java.util.regex consists of which classes?
Explain throw keyword in java?
What is hashing in java?
If you do not want your class to be inherited by any other class. What would you do?
What is super constructor?
What is the difference between int and integer in java?
What is a numeric literal?
What is a hashmap used for?
Why string is called as immutable?
Difference between overriding and overloading in java?
What is the best way to findout the time/memory consuming process?