What do you mean by dependency injection and how does it work?
Answer / Anuj Kumar Tripathi
Dependency Injection is a design pattern that allows dependencies to be injected or passed to an object at runtime, rather than hard-coding them. It reduces the need for objects to query other objects for dependencies, which can improve modularity, testability, and reusability.
| Is This Answer Correct ? | 0 Yes | 0 No |
What type of transaction management spring support?
What is binding in spring and tell us about the @autowired annotation?
In spring, what is weaving?
What is repository annotation in spring?
What are the different types of spring?
What does @controller do in spring?
Which is better setter or constructor injection?
Explain dependency injection and its types?
How is localization achieved in the spring mvc web applications?
What are the types of annotations?
What is @componentscan in spring?
Explain the concept of a beanfactory?