Which class is super class of every class

Which class is super class of every class

Answer : The Object class which is available in the java.lang package sits on top of the class hierarchy tree. Every class is a descendant, direct or indirect, of the Object class. Every class you use or write inherits the instance methods of Object. You need not use any of these methods, but, if you choose to do so, you may need to override them with code that is specific to your class.

Leave a Reply

Your email address will not be published. Required fields are marked *

I am not Robot *