Home » JAVA Programming » Inheritance » Question
  1. If super class and subclass have same variable name, which keyword should be used to use super class?
    1. this
    2. classname
    3. super
    4. upper
    5. None of these
Correct Option: C

Super keyword is used to access hidden super class variable in subclass.



Your comments will be displayed only after manual approval.