Why we are using dependency injection?
Answer / Jyoti Agnihotri
We use dependency injection to make our code more modular, testable, and easier to maintain. It promotes loose coupling between components in our application by allowing us to separate the concerns of object creation and management from the business logic.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to use tomcat jndi datasource in spring web application?
Can we have multiple spring configuration files?
How does spring singleton work?
What is spring security?
What is difference between @autowired and @resource in spring?
What is webapplicationinitializer in spring?
What are the various ways of using spring framework?
How many modules are there in spring framework and what are they?
What are spring boot starter projects? : Spring Boot
What are the examples of standard spring events?
How does dependency injection work and why would you need it?
Write about aop module?