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

What is native method in java?

789


Is string a datatype?

743


What is the function of http?

766


How do you calculate square roots?

858


How do you do absolute value in java?

732


What is data and its types?

762


What are class members by default?

855


What are the advantages of defining packages in java?

741


What type of variable is error flag?

832


How can we create an immutable class in java?

811


What is an 8 bit word?

804


Can a final variable be null?

754


can used Protected Class outside Function.?

833


Why are arrays useful in java?

779


What's the difference between an abstract class and interface in java?

789