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


Please Help Members By Posting Answers For Below Questions

Why multiple inheritance is not supported by java?

755


What checkbox method allows you to tell if a checkbox is checked?

787


Can we have multiple catch block for a try block?

804


What is method overloading in JAVA? Why is it not present in C ?

818


What is the use of protected in java?

771


Write a java program for binary search?

817


Can we pass null as argument in java?

717


What is int argc char * argv?

804


What is double data type?

751


What is palindrome in java?

757


What is comparator in java?

760


What is java Applet?

843


What are the different collection views provided by maps?

787


What are the 8 data types in java?

766


What is an example of a keyword?

779