SpringBoot Question

What is dependency Injection?

#Capgemini#SeniorSoftwareEngineer
0 views
Answers (1)

Submit your answer

CodingNinjas
CodingNinjas
Answered Mar 09, 2022

The process of injecting dependent bean objects into target bean objects is called dependency injection.

1) Setter Injection: The IOC container will inject the dependent bean object into the target bean object by calling the setter method.
2) Constructor Injection: The IOC container will inject the dependent bean object into the target bean object by calling the target bean constructor.
3) Field Injection: The IOC container will inject the dependent bean object into the target bean object by Reflection API.

Report

Report Interview Advice

What’s wrong with this interview advice?