hiexam
vmware · 2V0-7222 · Q605 · multiple_choice · topic_1

Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)

Spring puts each bean instance in a scope. What is the default scope? (Choose the best answer.)
  • A.prototype
  • B.singleton
  • C.request
  • D.session
Explanation
Selected Answer: B The singleton scope is the default scope in Spring. https://docs.spring.io/spring-framework/docs/3.0.0.M3/reference/html/ch04s04.html#:~:text=The%20singleton%20scope%20is%20the%20default%20scope%20in%20Spring.

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.