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?
A. SmsHandler
B. MsgHandler
C. None of the above. An exception would be thrown due to ambiguous bean references.
D. GenericMessenger
B
A because alternatives is on