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 is int short for?
Can a class have 2 constructors?
Can we make a constructor final?
What is parsing a sentence?
Can a variable be local and static at the same time?
What do you understand by synchronization?
Define the term string pool?
What is class array in java?
What is mutable object and immutable object?
What is functional interface in java example?
What is sleep method?
What is an interface in java?
What is a parameter in matrices?
What is a null point?
what is optional in java 8?