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 the difference between the final method and abstract method?
Which oo concept is achieved by using overloading and overriding?
Write a program to find maximum and minimum number in array?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What happens if we don’t override run method ?
How many inner classes can a class have?
Is there a way to increase the size of an array after its declaration?
Define how can we find the actual size of an object on the heap?
When super keyword is used?
What are different types of references?
how can you take care of mutual exclusion using java threads? : Java thread
What is type safety in java?
What are the features of java?
How many arguments can be passed to main ()?
What is sizeof in java?