Skip to content
Sharp

Design patterns · interview question

Which of the following statements regarding the Factory Pattern and Spring's Inversion of Control (IoC) is true?

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

Correct answer

D. IoC can be seen as an advanced form of the Factory Pattern.

Why

Spring's IoC is an advanced form of the Factory Pattern. It handles the creation and injection of objects (beans), managing dependencies and lifecycle, which aligns with the fundamental concepts of the Factory Pattern.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →