Multiple choice technology web technology

Inversion of Control Pattern (IOC) is also known as ?

  1. Inversion Injection

  2. Dependency Injection

  3. Setter Injection

  4. Pattern Injection

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Inversion of Control (IoC) is a design principle where the flow of control is inverted compared to traditional programming. Dependency Injection is a common implementation pattern for achieving IoC - dependencies are provided to objects rather than objects creating them. Setter Injection and Constructor Injection are specific types of Dependency Injection.