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 native method in java?
Is string a datatype?
What is the function of http?
How do you calculate square roots?
How do you do absolute value in java?
What is data and its types?
What are class members by default?
What are the advantages of defining packages in java?
What type of variable is error flag?
How can we create an immutable class in java?
What is an 8 bit word?
Can a final variable be null?
can used Protected Class outside Function.?
Why are arrays useful in java?
What's the difference between an abstract class and interface in java?