Parent class of a simple class? | Sololearn: Learn to code for FREE!

+1

Parent class of a simple class?

Question asked in interview https://code.sololearn.com/c18GdQt55lDu/?ref=app

12/4/2019 8:35:55 AM

palak pandey

1 Answer

New Answer

+1

Object class is the parent class of all classes you create in Java. If you create a class without a super class than you can check it using the instanceof operator to confirm what I said. https://code.sololearn.com/cBDom3Nnm068/?ref=app