Following quiz provides Multiple Choice Questions (MCQs) related to Spring Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - What AOP stands for?
AOP stands for Aspect Oriented Programming.
Q 2 - Which is the correct implementation class of BeanFactory?
XmlBeanFactory is the implementation class of BeanFactory. Other mentioned classes do not exists.
Q 3 - What is session scope?
session scope instructs Spring IoC container to create a instance per HTTP session.
Q 4 - What is constructor mode of autowiring?
Constructor mode of autowiring is similar to byType, but type applies to constructor arguments. If there is not exactly one bean of the constructor argument type in the container, a fatal error is raised.
Q 5 - What is RequestHandledEvent:event?
RequestHandledEvent event is published when the HTTP session is initialized or refreshed.
Q 6 - How after-throwing advice works?
after-throwing advice runs after http request is processed and an exception occurred.
Q 7 - What are the ways to access Hibernate by using Spring?
Hibernate can be accessed by both ways either using Inversion of Control with a Hibernate Template and Callback or extending HibernateDAOSupport and applying an AOP Interceptor node.
Q 8 - Thread scoped bean is introduced in which version of spring framework.
Thread scoped bean is introduced in 3.0 version of spring framework.
Q 9 - If a bean can be created any number of times, scope is
In prototype scope, a bean can be created any number of times.
Q 10 - Where do you define DispatcherServlet?
DispatcherServlet is defined in web.xml of web application.
73 Lectures 5.5 hours
62 Lectures 4.5 hours