• +91 9723535972
  • info@interviewmaterial.com

Spring Interview Questions and Answers

Question - How to Define the Scope of a Bean?

Answer -

In order to set Spring Bean's scope, we can use @Scope annotation or “scope” attribute in XML configuration files. Note that there are five supported scopes:

  • Singleton
  • Prototype
  • Request
  • Session
  • Global-session

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners