Broadcom-VMware
2V0-72.22 · Question #2
Refer to the exhibit. It is a Java code fragment from a Spring application. Which statement is true with regard to the above example? (Choose the best answer.)
The correct answer is D. It will return a bean of the type ClientService regardless of its id or name. See the full explanation below for the reasoning.
Question
Refer to the exhibit. It is a Java code fragment from a Spring application. Which statement is true with regard to the above example? (Choose the best answer.)
Options
- AThis syntax is invalid because the result of the getBean() method call should be cast to
- BIt will return a bean called ClientService regardless of its id or name.
- CThis syntax is invalid because the bean id must be specified as a method parameter.
- DIt will return a bean of the type ClientService regardless of its id or name.
How the community answered
(16 responses)- A6% (1)
- B13% (2)
- C6% (1)
- D75% (12)
Community Discussion
No community discussion yet for this question.