Multiple choice technology programming languages

Is Super a keyword or a method?

  1. keyword

  2. method

  3. both

  4. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

'super' is a reserved keyword in Java, not a method. It is used to access superclass members (super.method() or super.field) or to call a superclass constructor (super() as the first statement in a constructor). It cannot be used as a variable name or for any other purpose.