Inherit Super Class Without Extends Statement

If Object is the super class of all classes, how it is inherited without extends statement?

Questions by webroot

Showing Answers 1 - 3 of 3 Answers

During the compilation process our JVM checks whether we are extending any class, if not it will will extend the object, which we know that is super class of all classes, which is default
we can check it by decompiling the class we developed using javap command

One of  the main reason for JVM to extend is

1) To develop the hexacode (hashcode) for the objects we are created that is done by toString() method.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions