MCQs – Java Inheritance

Q) In which java oops feature one object can acquire all the properties and behaviours of the parent object?
  1. Encapsulation
  2. Inheritance
  3. Polymorphism
  4. None of the above
View Answer
Answer: B.


Q) Java inheritance is used
  1. for code re-usability
  2. to achieve runtime polymorphism
  3. Both of the above
  4. None
View Answer
Answer: C

Q) The functionality of multiple inheritance can be implemented in Java by

I. Extending one class and implementing multiple interfaces.
II.Implementing multiple interfaces.
III.Extending multiple classes and interfaces.
IV. Extending multiple classes and one interface

  1. Only I
  2. Only III
  3. I & II
  4. II & III
View Answer
Answer: C

Leave a Comment