Oracle
1Z0-900 · Question #34
1Z0-900 Question #34: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-900 to reveal the answer and full explanation for question #34. The question stem and answer options stay visible for context.
Use CDI Beans
Question
Given the code sample: And: And: And the next fragment from beans.xml: And this injection point: @Inject GenericMessenger messageHandler; Which type would be injected at run time and referenced by the messageHandler variable?
Options
- ASmsHandler
- BMsgHandler
- CNone of the above. An exception would be thrown due to ambiguous bean references.
- DGenericMessenger
Unlock 1Z0-900 to see the answer
You've previewed enough free 1Z0-900 questions. Unlock 1Z0-900 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
#CDI injection#bean resolution#type-based selection#dependency injection