Loading, please wait...

Java Spring and Spring boot MCQ Quiz (Multiple Choice Questions And Answers)

Search here for MCQs

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

6. What is the default scope of the beans?

  • Prototype
  • Session
  • Request
  • Singleton

7. What is Bean in Spring?

  • Component
  • Object
  • Class
  • Container

8. How to use <ref> in Spring framework?

  • <ref> is used with bean id
  • <ref> is used with string values

9. Which method is used to process bean before initialization callback?

  • postProcessAfterInitialization()
  • scope
  • postProcessBeforeInitialization()
  • it's own constructor

10. Which tag is also allowed by static field?

  • util:constant
  • list
  • set
  • constructor-args