Skip to content
Sharp

Design patterns · interview question

How would you explain a common mistake when implementing the Factory Pattern in a Java interview?

Multiple choiceMediumchapter-13-curatedpremiumdesign-patternsfactory-pattern
Choose one answer
Answer and explanation

Correct answer

D. Tightly coupling the factory class with the concrete products.

Why

Tightly coupling the factory class with concrete products defeats the purpose of the Factory Pattern, which aims to abstract and decouple object creation from client code.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →