• DI,  IOC,  spring,  Spring Basics,  Spring Interview Questions

    Inversion of Control (IOC) Vs Dependency Injection (DI)

    IOC and DI are one of the same thing in aspects of Spring frame work, Both are meant to be for same functionality. Dependency injection (DI) is a programming design pattern and architectural model, sometimes also referred to as inversion of control or IOC, although technically speaking, dependency injection specifically refers to an implementation of a particular form of IOC. Dependency Injection describes the situation where one object uses a second object to provide a particular capacity. For example, being passed a database connection as an argument to the constructor instead of creating one internally. The term “Dependency injection” is a misnomer, since it is not a dependency that is…

    Comments Off on Inversion of Control (IOC) Vs Dependency Injection (DI)