How does spring do dependency injection?



How does spring do dependency injection?..

Answer / Girish Chandra Asrekar

Spring Framework performs Dependency Injection (DI) by managing the lifecycle of objects, creating instances of beans when needed, and injecting them into other dependent beans. This can be achieved using XML configuration, annotations, or Java Configurations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What are dispatcher servlet and context loader listener?

1 Answers  


Explain the different modes of auto wiring.

1 Answers  


What is the use of @service annotation in spring?

1 Answers  


What is spring ioc in simple words?

1 Answers  


What is pointcut in spring aop?

1 Answers  


What is a jointpoint?

1 Answers  


What are the benefits of the spring framework?

1 Answers  


What is hikari in spring boot? : Spring Boot

1 Answers  


What is the difference between maven and spring?

1 Answers  


How do you access hibernate using spring?

1 Answers  


What is @activeprofiles?

1 Answers  


What are some of the design patterns used in the spring framework?

1 Answers  


Categories