Skip to content
Sharp

Object-oriented programming · interview question

How does using interfaces in Java promote flexibility in application design?

Multiple choiceEasychapter-5-curatedpremiumoopcomposition-vs-inheritance
Choose one answer
Answer and explanation

Correct answer

C. Allows multiple inheritance of type.

Why

Interfaces promote flexibility by allowing a class to implement multiple interfaces, thus supporting multiple inheritance of type. This allows various classes to implement the same interface regardless of their position in the class hierarchy.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →