Is java.lang.Object
superclass of all the custom class/objects inherited implicitly? I thought java didn\'t support multiple inheritance. The reason I ask is i
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
.