Java Interview Questions and Answers

 

How are this() and super() used with constructors in Java Programming?

this() is used to invoke a constructor of the same class. super() is used to invoke
a superclass constructor in Java Programming.

Posted by:Richards