Spring MCQ Quiz

  1. Spring is licensed under
  2. Spring is developed by
  3. Which one of following is an alternative to Spring HibernateTemplate
  4. Which of following method is used to gracefully shutdown all the bean processes after closing the spring container?
  5. What is the scope of bean in portlet context?
  6. Can we integrate Struts with Spring?
  7. What is the default scope of the beans?
  8. What is bean in Spring?
  9. How to use <ref> in spring framework?
  10. Which method is used to process bean before initialization callback
  11. Which tag is also allowed by static field?
  12. AOP stands for?
  13. Which element is used to specify access attributes for bean's methods.
  14. How many types of method injection are available in spring?
Spring MCQ

Take Spring MCQ Quiz & Online Test to Test Your Knowledge 

We have listed below the best Spring MCQ Questions, that check your basic knowledge of Spring. This Spring MCQ Test contains 25 multiple-choice questions. You have to select the right answer to every question to check your final preparation. apart from this, You can also download below the Spring MCQ Pdf completely free.

  • GNU
  • Apache License 2.0
  • GNU Lesser General Public License
  • Open source
View Answer
  • Red Hat Software
  • Daniel Fernández
  • Apache
  • Pivotal Software
View Answer
  • Hibernate contextual sessions
  • HibernateContext
  • All of the mentioned
  • None of the mentioned
View Answer
  • destory method
  • shutdownHook
  • session method
  • None of these
View Answer
  • session
  • global-session
  • request
  • prototype
Download Free : Spring MCQ PDF
View Answer
  • Prototype
  • session
  • Request
  • Singleton
View Answer
  • A component
  • An Object
  • A class
  • A container
View Answer
  • is used with bean id
  • is used with string values
View Answer
  • postProcessAfterInitialization()
  • scope
  • postProcessBeforeInitialization()
  • it's own constructor
View Answer
  • util:constant
  • list
  • constructor-args
  • set
View Answer
  • Asynchronous oriented programming
  • Aspect Oriented Programming
  • All Oops Program
View Answer
  • security:intercept
  • security:protect
  • security:intercept-security
  • none of above
View Answer
  • 4
  • 2
  • 8
  • 1
View Answer
  • commit()
  • getTransaction()
  • rollback()
  • None of the above
View Answer
  • stateful session beans (SFSBs)
  • message-driven beans (MDBs)
  • stateless session beans (SLSBs)
  • AbstractStatefulSessionBean
View Answer
  • stateful session beans (SFSBs)
  • message-driven beans (MDBs)
  • stateless session beans (SLSBs)
  • AbstractStatefulSessionBean
View Answer
  • OPENEJB_HOME
  • Bashrc
  • EJB_HOME
  • EJB 2.x components
View Answer
  • @Autowire
  • @Interceptors
  • @Wire
  • @Mention
View Answer
  • JndiObject
  • JndiObjectFactory
  • JndiObjectFactoryBean
  • JndiFactoryBean
View Answer
  • Bean scope defines the accessibility of bean in a java class.
  • Bean scope defines the accessibility of bean in a java package
  • Bean scope defines the accessibility of bean in a web application.
  • Bean scope forces Spring to produce a new bean instance as per the scope defined.
View Answer
  • BeanFactory
  • ApplicationContext
  • Both BeanFactory & ApplicationContext
  • None of the above
View Answer
  • servlet-flow
  • servlet-attr
  • servlet-requests
  • servlet-mapping
View Answer
  • stateful session beans (SFSBs)
  • message-driven beans (MDBs)
  • stateless session beans (SLSBs)
  • All of the above
View Answer
  • JndiObject
  • JndiFactoryBean
  • JndiObjectFactory
  • JndiObjectFactoryBean
View Answer