What is dependency injection(ioc) in spring?



What is dependency injection(ioc) in spring?..

Answer / Raghvendra Vikram Yadav

Dependency Injection (DI) or Inversion of Control (IoC) in Spring is a design pattern that allows dependencies to be injected into objects, rather than the object creating or managing its own dependencies. This promotes loose coupling and makes code more modular, testable, and easier to maintain.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is meant by dao? : Spring Boot

1 Answers  


Explain the different modes of auto wiring.

1 Answers  


How does aop work in spring?

1 Answers  


What is the difference between the @component, @repository and @service annotations in spring?

1 Answers  


What is the use of beanpostprocessor in spring?

1 Answers  


What is the use of @bean in spring?

1 Answers  


Does closing connection close resultset?

1 Answers  


What is jpa in spring boot? : Spring Boot

1 Answers  


How to upload file in spring mvc application?

1 Answers  


What is front controller in spring?

1 Answers  


What is the difference between dao and repository?

1 Answers  


How you will decide when to use prototype scope and when singleton scope bean?

1 Answers  


Categories