what is difference between class and object?
Answer Posted / akhandam revathi
CLASSES- A class is a collection of objects of similar
type. Ex:mango,apple and orange are members of the class
fruit.
OBJECTS- An object is an abstract representation of a real
world entity that has a unique identity,embedded properties
and the ability to interact with each other.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the base class for error and exception?
Explain method overloading?
Can we have a method name same as class name in java?
Does A Class Inherit The Constructors Of Its Superclass?
Can we make constructors static?
Is it possible to specify multiple jndi names when deploying an ejb?
What are anonymous inner classes?
What is an exception in java?
What is final keyword in java? Give an example.
How do you sort in descending order in java using collections sort?
What do you know about the garbage collector?
How many types of literals are there in JAVA?
How many types of operators are there?
What will be the initial value of an object reference which is defined as an instance variable?
What is the meaning of flag day?