‹ Back to the paper
State any one purpose of using the keyword super in Java programming.
Answer
Answer
AIThe keyword `super` is used in a subclass's constructor to invoke (call) the constructor of its immediate superclass, so that the inherited data members get initialised by the superclass's own constructor (e.g. `super(args);` as the first statement).
From ISC 2023 Specimen Computer Science Paper 1, question 1(viii).