Q) In which java oops feature one object can acquire all the properties and behaviours of the parent object?
- Encapsulation
- Inheritance
- Polymorphism
- None of the above
Answer: 2
Q) Java inheritance is used
- for code re-usability
- to achieve runtime polymorphism
- Both of the above
- None
Answer: 3
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
- Only I
- Only III
- I & II
- II & III
Answer: 3