top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Spring Java:What is IOC and DI?

+3 votes
152 views
Spring Java:What is IOC and DI?
posted Jun 10, 2016 by Karthick.c

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Inversion of Control (IOC) and Dependency Injection (DI) are used interchangeably. ... By DI the responsibility of creating objects is shifted from our application code to Spring container hence the phenomenon is called IOC. Dependency Injection can be done by setter injection, constructor injection.

answer Dec 21, 2016 by Shyam
...