Spring
framework is loosely coupled because the following reasons:
1.
We can use one or another modules of spring
without having dependency with other modules.
Ex: We can use spring core + jdbc modules to develop persistence logic
without using other modules.
2.
The dependent values of spring resource can be
configured through XML file without hardcoding them directly in resources (classes)
We can
use only spring to develop complete project or we can use spring along with
other frameworks or java technologies to develop project.Note:
Loosely coupled?
If degrees of dependency is less then it is called Loosely coupled. Ex: TV, remote.
Tightly coupled?
If degrees of dependency is high then it is called tightly coupled.
Ex: (1) fan, switch (2) CPU, and monitor
No comments:
Post a Comment