Object class in Java is present in [Link] package.
Every class is directly or indirectly derived from the Object class. If a class does not extend
any other class then it is a direct child class of the Java Object class and if it extends another
class then it is indirectly derived.
The Object class provides several methods such as toString(),equals(), hashCode(), and
many others.
The Object class acts as a root of the inheritance hierarchy in any Java Program.
Object Class Methods
The Object class provides multiple methods which are as follows:
toString() method
hashCode() method
equals(Object obj) method
finalize() method
getClass() method
clone() method
wait(), notify() notifyAll() (Concurrency methods)