DEVFYI - Developer Resource - FYI

How are this and super used?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

327. How are this and super used?

this is used to refer to the current object instance. super is used to refer to the variables and methods of the superclass of the current object instance.

(Continued on next question...)

Other Interview Questions