Answer:
The Dependency Injection is just like a Design pattern which is predominantly used for developing loosely coupled code.
Below are the different advantages that we get using DI
1) It improves code Maintainability
2) It improves code Re-Usability
3) It improves code Coupling
4) It improves application level testing too.
Asked In: Many Interviews |
Alert Moderator