Multiple choice technology programming languages

Which of the following are the scopes defined in spring?

  1. Singleton

  2. Prototype

  3. Converter

  4. Expression

Reveal answer Fill a bubble to check yourself
A,B Correct answer
Explanation

Spring framework defines multiple bean scopes. Singleton (default) creates one instance per Spring container, while prototype creates a new instance each time the bean is requested. Additional scopes like request, session, and application are available in web contexts.