Broadcom-VMware
2V0-72.22 · Question #32
Why is field-based dependency injection not recommended?
The correct answer is A. It hides the dependencies D. It disallows final/immutable field declaration. See the full explanation below for the reasoning.
Question
Why is field-based dependency injection not recommended?
Options
- AIt hides the dependencies
- BBecause it does not use Class-based Dependency Injection
- CBecause it uses the Java Reflection API, which may adversely impact performance
- DIt disallows final/immutable field declaration
How the community answered
(27 responses)- A70% (19)
- B22% (6)
- C7% (2)
Community Discussion
No community discussion yet for this question.