In this article, we will discuss Inversion of Control and Dependency Injection in detail.


Inversion of control and dependency injection is part of the spring Core, and both related to each other. The main objective is to make a Tightly Coupled java application into a Loosely Coupled application through injecting dependencies into a component when it is constructed. These dependencies are usually provided as interfaces for further decoupling and to support testability.

Spring IOC:

The spring Ioc is a container that contains two sub-containers, one is a core container and another one is a J2EE container. …

Pavan reddy

Passion towards gaining knowledge

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store