What problem does dependency injection solve?
Answer / Shilpi Sharma
Dependency Injection solves the problem of tight coupling between objects by inverting the flow of control. Instead of objects creating and managing their dependencies, the dependencies are injected into them at runtime. This makes code more modular, easier to test, and promotes loose coupling.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is spring configuration file?
What is the ioc in spring?
What are the examples of standard spring events?
What is dependency injection in spring?
What is root context in spring?
What are the ways by which hibernate can be accessed using spring?
What is the use of @service annotation in spring?
Write about the different types of listener related events?
What is @controller in spring?
How does @transactional work in spring?
What are spring mvc annotations?
What is the default scope of spring component?