Every class without an explicit superclass inherits from java.lang.Object
and every other class inherits from it indirectly because when you go up the inheritance tree, you will finally end at a class without an explicit superclass and then at Object
.
java.lang.Class
is the superclass of all class objects (not of all objects!), for example of String.class
.