Register now or log in to join your professional community.
The Object class, which 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.
Well tht is obvious The java.lang.Object is super class to all Java classes. Cuz it is one of the compiler contracts ,when a developer developes a java class and compile it ,the compiler keps a extracode right next to the class name...
For Example:
class A
{
}
if you compile it the "A.class" file will be generated as---
class A extends java.lang.Object
{
}