Skip to content
Sharp

Software Architecture · interview question

Why can using the Observer Pattern in a system become a problem in practice?

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

Correct answer

C. It can lead to memory leaks if observers are not properly managed.

Why

If observers are not properly managed or removed when no longer needed, it can lead to memory leaks as references to them are retained by the subject.

Test yourself on Software Architecture

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

Start free test
All Software Architecture questions →