1.

Which of these keywords is used to refer to member of base class from a subclass?(a) upper(b) super(c) this(d) none of the mentionedThis question was addressed to me in an interview for job.My question is taken from String Class in section Classes and Methods of Java

Answer»

The correct choice is (b) SUPER

For EXPLANATION I would say: WHENEVER a subclass needs to REFER to its immediate superclass, it can do so by USE of the keyword super.



Discussion

No Comment Found

Related InterviewSolutions