First of all, the Object class is the super / base / parent class for each class, including custom classes.
Thus, even if we do not specify it explicitly, user classes extend the Object class by default.
Morevoer, the Object class, implements a set of methods and variables that are common to all objects created in the application. This is the main reason we have the Object class as the base class for all other classes.
For instance,
hashCode() - This method creates a unique identifier for each object created in the JVM.
source share