Pergunta de entrevista da empresa Leading EDJE

Describe the concept of dependency injection.

Respostas da entrevista

Sigiloso

11 de mai. de 2020

It is proces that provides automatic loading of dependencies for example we write the dependency in pom file and then it loads the dependencies from central repository or locally hosted Maven repository

Sigiloso

10 de nov. de 2020

It's a coding pattern to help create loosely coupled classes. A dependency is injected into the dependent class (through the constructor, method, or a property) instead of initializing it inside the dependent class