Object class in Java

Object class is the root class of every class in Java. It contains certain common methods which are applicable to all objects of java. It is used primarily when we don't know the type of object we are using. Being a parent class, we can use reference of Object class to point to object of any class.