Skip to content
Sharp

Object-oriented programming · interview question

How does implementing interfaces contribute to loose coupling in Java applications?

Multiple choiceMediumchapter-5-curatedpremiumoopinterfaces
Choose one answer
Answer and explanation

Correct answer

B. By allowing objects to interact through well-defined contracts

Why

Interfaces define contracts that classes can adhere to, enabling objects to communicate through these contracts rather than explicit dependencies. This reduces tight coupling and enhances flexibility.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →