Home / Programming MCQs / JAVA MCQs / Question

R

Ram Sharma • 170K Points
Coach

Q. The super() method is used to ___.

(A) Call constructor of friend class
(B) Is a declared method
(C) Call constructor of the parent class
(D) Call constructor

Explanation:

In Java programming language, the super() is a reference variable that is used to refer parent class constructors. The super can be used to call parent class's variables and methods. The super() can be used to call parent class' constructors only.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.