How does dependency injection work and why would you need it?
Answer / Awadhesh Kumar Singh
Dependency Injection is a design pattern in which an object receives other objects that it depends on, instead of creating them itself. Spring Framework uses Dependency Injection to manage the lifecycle of application components and their dependencies. It helps in reducing the complexity of managing application components by making them modular and testable.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the components of spring framework?
What is difference between oauth and oauth2?
What is the purpose of contextloaderlistener in spring?
What is loosely coupling in spring?
How many modules are there in spring?
Why spring is used in java?
What are 3 types of annotations?
How can you achieve internationalization using messagesource?
How annotation wiring can be turned on in spring?
What is the benefit of factory pattern?
What are classes for spring jdbc api?
What is @entity in spring boot? : Spring Boot