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
Why multiple inheritance is not supported by java?
What checkbox method allows you to tell if a checkbox is checked?
Can we have multiple catch block for a try block?
What is method overloading in JAVA? Why is it not present in C ?
What is the use of protected in java?
Write a java program for binary search?
Can we pass null as argument in java?
What is int argc char * argv?
What is double data type?
What is palindrome in java?
What is comparator in java?
What is java Applet?
What are the different collection views provided by maps?
What are the 8 data types in java?
What is an example of a keyword?