Skip to content
Sharp

Design patterns · interview question

How might over-engineering manifest when using the Factory Pattern in a Java application?

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

Correct answer

A. By creating unnecessary layers of abstraction that complicate the codebase

Why

Over-engineering with the Factory Pattern can lead to unnecessary layers of abstraction, making the codebase more complex and harder to maintain. It is important to use the pattern judiciously to avoid adding complexity without benefit.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →