what is the purpose of class "Object" which is base class
for all classes?
Answer Posted / vikki
The Object class sits at the top of the class hierarchy
tree in the Java development environment. Every class in
the Java system is a descendent (direct or indirect) of the
Object class. The Object class defines the basic state and
behavior that all objects must have, such as the ability to
compare oneself to another object, to convert to a string,
to wait on a condition variable, to notify other objects
that a condition variable has changed, and to return the
object's class.
Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is adapter in java?
What is collections framework?
What is static and final keyword in java?
What is the requirement of thread in java?
What is data type in computer?
What are mutable classes?
What is factor r?
How long will it take to learn java?
What is object of class in java?
What is a Null object?
How can you set the applet size?
Is null a string in java?
What are the benefits of immutable objects?
how to create constants in java?
Describe how to implement singleton design pattern in struts.