Loading, please wait...

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

Search here for MCQs

Here you will get Java Spring and Spring boot Quiz as Multiple Choice Questions And Answers for you next job or exam

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

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 

1. Which of the following statement is correct? (Choose two)

  • Spring is an open source framework.
  • Spring is heavyweight.
  • Spring supports tight coupling.
  • Spring using Dependency Injection and supports loose coupling.

2. org.hibernate.SessionFactory can manage contextual sessions and allows to retrieve them by:-

  • getSession() method
  • getCurrent() method
  • getCurrentSession() method
  • None of the above

3. What is Dependency Injection?

  • A design pattern which implements Inversion of Control for software applications.
  • One of the spring module.
  • A technique to get dependencies of any project.
  • Used to promote tight coupling in code.

4. What is the correct syntax for annotation wiring?

  • <annotation-context:config /> to bean configuration.
  • <annotation-config /> to bean configuration.
  • <annotation-context-config /> to bean configuration.
  • <context:annotation-config/> to bean configuration.

5. Annotation for Hibernate exceptions to be translated into Spring’s DataAccessException for consistent exception handling

  • @Translation
  • @Repo
  • @Repository
  • None of the above