Question 138

In Java, the keyword super is used to:

  1. ARefer to the immediate parent class
  2. BCreate a static method
  3. CRefer to the current object
  4. DStop inheritance
Show answerHide answer

Correct answer: (A) Refer to the immediate parent class

Explanation

this refers to the current object.

From DSSSB TGT Computer Science Full Mock Test 3

This is question 138 of DSSSB TGT Computer Science Full Mock Test 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.