What is the super class of every class in Java

Every class in java is a sub class of the class Object. When we create a class we inherit all the methods and properties of Object class. Let?s look at a simple example:

String str = "Testing";

if(str instanceof Object){
System.out.println("I extend Object");//Will be printed
In the above example, toString, hashCode and clone methods for String class are inherited from Object class and overridden.