Capgemini Interview Question

DI vs IOC in Spring

Interview Answer

Anonymous

Jun 26, 2020

DI is simply injecting dependency between class and IOC is a principle based on which you give this task to the available framework. In case of Spring, it is done my IOC container. This container take care of objects from creation till destruction.