Explain dependency injection and their types.

It is a technique in which one object is dependent on another object. There are three types of dependency injection: 1) Constructor injection, 2) setter injection, and 3) interface injection.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *