Haha, this question is like a game of 'guess the bean'. I'm going to go with C and pray for the best. Ambiguous bean references are the bane of every Java developer's existence.
I bet the answer is D. GenericMessenger. The injection point is using that interface, so it should just return the base interface implementation, right? *scratches head*
Definitely C. An exception would be thrown. How are we supposed to know which implementation to choose when there are multiple beans of the same type? This is a tricky one!
I'm going with B. MsgHandler. The code samples show that MsgHandler implements GenericMessenger, and it's the only one that matches the injection point.
Hmm, I think the answer is C. The beans.xml configuration seems to have multiple beans that implement the GenericMessenger interface, so there would be an ambiguous bean reference exception.
Anastacia
5 days agoTambra
6 days agoLucy
13 days agoTruman
18 days agoVannessa
23 days agoElza
24 days agoFatima
24 days agoTruman
27 days ago