intermediateDependency Injection & Core
What is the difference between constructor injection and field injection? Which is preferred?
Tests whether you know why constructor injection is the recommended default for immutability and testability.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
What is the difference between constructor injection and field injection? Which is preferred?