ExamGecko
Question list
Search
Search

Question 32 - 2V0-72.22 discussion

Report
Export

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.)

A.
This syntax is invalid because the result of the getBean() method call should be cast to ClientService.
Answers
A.
This syntax is invalid because the result of the getBean() method call should be cast to ClientService.
B.
It will return a bean called ClientService regardless of its id or name.
Answers
B.
It will return a bean called ClientService regardless of its id or name.
C.
This syntax is invalid because the bean id must be specified as a method parameter.
Answers
C.
This syntax is invalid because the bean id must be specified as a method parameter.
D.
It will return a bean of the type ClientService regardless of its id or name.
Answers
D.
It will return a bean of the type ClientService regardless of its id or name.
Suggested answer: D
asked 16/09/2024
Andrea Trivisonno
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first