Broadcom-VMware
2V0-72.22PSE · Question #91
2V0-72.22PSE Question #91: Real Exam Question with Answer & Explanation
Sign in or unlock 2V0-72.22PSE to reveal the answer and full explanation for question #91. The question stem and answer options stay visible for context.
Core Spring
Question
Which two mechanisms of autowiring a dependency when multiple beans match the dependency's type are correct? (Choose two.)
Options
- AUse of @Qualifier annotation on the class and @Autowired annotation either on a field or setter
- BUse of @Qualifier and @Autowired annotations together with setter methods.
- CUse of @Qualifier annotation only with setter methods (@Autowired is optional for setters).
- DUse of @Qualifier and @Autowired annotations together on a field.
- EUse of @Qualifier annotation only on a field (@Autowired is optional for fields).
Unlock 2V0-72.22PSE to see the answer
You've previewed enough free 2V0-72.22PSE questions. Unlock 2V0-72.22PSE for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#@Qualifier annotation#@Autowired annotation#Dependency injection#Bean disambiguation