Skip to content
Sharp

Software Architecture · interview question

Which interface in Java is commonly used to implement the Observer Pattern?

Multiple choiceEasychapter-13-curatedpremiumsoftware-architectureobserver-pattern
Choose one answer
Answer and explanation

Correct answer

B. Java.util.Observer

Why

The java.util.Observer interface is used in conjunction with the Observable class to implement the Observer Pattern in Java, allowing objects to be notified of changes.

Test yourself on Software Architecture

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

Start free test
All Software Architecture questions →