Constructor-based DI is preferred for ___________
(a) Optional dependencies
(b) Mandatory dependencies
(c) All dependencies
(d) No dependency
The question was asked by my college professor while I was bunking the class.
My question is from The Controller Component topic in chapter Mastering JUnit of JUnit