Are there any classes that don’t inherit Object as SuperClass or maybe have become Obsolete/deprecated?
Are there any classes that don’t inherit Object as SuperClass or maybe have become
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to Java Object superclass,
java.lang.Objectdoes not extendObject.Other than that, all classes, i.e.
implicitly extend Object class, if they don’t extend any other super-class.
Interfaces, on the other hand, do not extend Object, as Interface, by definition, can not extend Class.
Also, Interfaces can not contain callable methods, nor can objects be instantiated from them. When interfaces are finally implemented, the implementing class will necessarily extend Object (and, no,
Objectdoesn’t implement or extend any other entity/class/interface).