DEVFYI - Developer Resource - FYI

How are this() and super() used with constructors?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

104. How are this() and super() used with constructors?

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

(Continued on next question...)

Other Interview Questions