nerdexam
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)
  • A
    6% (1)
  • B
    13% (2)
  • C
    6% (1)
  • D
    75% (12)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice