ExamGecko
Question list
Search
Search

Question 39 - 2V0-72.22 discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Two AccountRepository beans will be instantiated as the accountRepository() method will be called two times.
Suggested answer: C
asked 16/09/2024
Laura G
57 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first