Qus:- What do you mean by Dependency Injection?  | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Qus:- What do you mean by Dependency Injection? 

19th May 2019, 9:59 AM
Deepika Mourya
Deepika Mourya - avatar
2 Answers
+ 3
Deepika Mourya In software engineering, dependency injection is a technique whereby one object (or static method) supplies the dependencies of another object. Adependency is an object that can be used (a service). An injection is the passing of a dependency to a dependent object (a client) that woulduse it. source: https://en.m.wikipedia.org/wiki/Dependency_injection I hope I was helpful
19th May 2019, 10:18 AM
Alessio Benvenuti
Alessio Benvenuti - avatar
+ 1
dependency injection is concept java it means that make your code independent with the use of constructor and this keyword we can accomplish this task
19th May 2019, 1:40 PM
Ram Rabari
Ram Rabari - avatar