Spring framework contributes in loose coupling with the help of Dependency Injection(DI) or Inversion of Control(IOC). DI allows you to inject objects into a class, rather than relying on the class to create the object itself. So the process of creating an object is inverted.
In a software system, objects collaborate with each other to make the system work. These collaborations are generally in the form of one object depending on another object, in other words, declaring an object with “new” operator in the other class.
The discussed example in this article can be downloaded as eclipse project from here
Continue reading What Is Dependency Injection/ Inversion of Control And How Does It Helps In Loose Coupling?