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 

11. How does spring achieve DI or IOC?

  • Service locator pattern
  • Factory pattern
  • Abstract factory pattern
  • Singleton pattern

12. Which interface in spring is responsible for Instantiating and managing the so called Spring beans?

  • BeanFactory
  • ApplicationContext
  • BeanDefinition
  • BeanFactoryAware

13. A bean can have more than one name using multiple id attributes?

  • True
  • False

14. Beans can be created by which of the following properties?

  • Static factory-method
  • Instance Factory-Method
  • All of the above
  • None of the above

15. Is Singleton beans are thread safe in Spring Framework?

  • No, singleton beans are not thread-safe in Spring framework.
  • Yes, singleton beans are thread-safe in Spring framework.