Multiple choice technology programming languages

Which of the following keywords is used to invoke a method in the parent class?

  1. this

  2. super

  3. final

  4. static

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

The super keyword in Java is used to refer to the parent class and invoke its methods or constructors. The this keyword refers to the current instance, final prevents modification, and static means class-level rather than instance-level.