Sunday, February 28, 2016

Interview Question

IOC vs ID?
IOC
Giving control to the container to get instance of object is called Inversion of Control., means instead of you are creating object using new operator, let the container do that for you.

DI
Way of injecting properties to an object is called Dependency injection.
    We have three types of Dependency injection
        1)  Constructor Injection
        2)  Setter/Getter Injection
        3)  Interface Injection - not support by spring 

No comments:

Post a Comment