Spring MCQ Quiz
Spring MCQ Quiz
com
Spring MCQ Quiz
A. GNU
B. Apache License 2.0
C. GNU Lesser General Public License
D. Open source
Q4. Which of following method is used to gracefully shutdown all the bean processes after
closing the spring container?
A. destory method
B. shutdownHook
C. session method
D. None of these
A. session
B. global-session
C. request
D. prototype
A. Yes
B. No
A. Prototype
B. session
C. Request
D. Singleton
A. A component
B. An Object
C. A class
D. A container
A. postProcessAfterInitialization()
B. scope
C. postProcessBeforeInitialization()
D. it's own constructor
A. util:constant
B. list
C. constructor-args
D. set
Q13. Which element is used to specify access attributes for bean's methods.
A. security:intercept
B. security:protect
C. security:intercept-security
D. none of above
A. 4
B. 2
C. 8
D. 1
Q15. In Spring Method that allows you to start a new transaction is called -
A. commit()
B. getTransaction()
C. rollback()
D. None of the above
Q16. Spring EJB Support Classes for Different Types of EJB
Q18. To start the OpenEJB container, you first set environment variable
A. OPENEJB_HOME
B. Bashrc
C. EJB_HOME
D. EJB 2.x components
A. @Autowire
B. @Interceptors
C. @Wire
D. @Mention
A. JndiObject
B. JndiObjectFactory
C. JndiObjectFactoryBean
D. JndiFactoryBean