Broadcom-VMware
2V0-72.22 · Question #9
Refer to the exhibit. Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)
The correct answer is A. One AccountRepository bean will be instantiated since the default scope is singleton. See the full explanation below for the reasoning.
Question
Refer to the exhibit. Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)
Exhibit
Options
- AOne AccountRepository bean will be instantiated since the default scope is singleton.
- BThree AccountRepository beans will be instantiated as the accountRepository() method will be
- CMany AccountRepository beans will be instantiated, depending how often accountRepository(),
- DTwo AccountRepository beans will be instantiated as the accountRepository() method will be
How the community answered
(34 responses)- A76% (26)
- B6% (2)
- C3% (1)
- D15% (5)
Community Discussion
No community discussion yet for this question.
