Related questions
Question 39 - 2V0-72.22 discussion
Refer to the exhibit.
Based on the default Spring behavior, choose the correct answer. (Choose the best answer.)
A.
One AccountRepository bean will be instantiated since the default scope is singleton.
B.
Three AccountRepository beans will be instantiated as the accountRepository() method will be called three times.
C.
Many AccountRepository beans will be instantiated, depending how often accountRepository(), transferService() and accountService() are called.
D.
Two AccountRepository beans will be instantiated as the accountRepository() method will be called two times.
Your answer:
0 comments
Sorted by
Leave a comment first