Which of the following are the scopes defined in spring?
-
Singleton
-
Prototype
-
Converter
-
Expression
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.