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 - Which are the modules of Data Access/ integration layer?
JDBC, ORM, OXM, JMS, Transactions are the modules of Data Access/ Integration layer.
Q 2 - Which are the correct implementation classes of ApplicationContext?
FileSystemXmlApplicationContext is the implementation class of ApplicationContext. 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 byName mode of autowiring?
byName mode of autowiring is autowiring by property name. Spring tries to match and wire its properties with the beans defined by the same names in the configuration file.
Q 5 - What is Join point?
Join point represents a point in your application where you can plug-in AOP aspect.
Q 6 - Which of the following aspect implementation spring supports?
Spring supports both XML Schema based and @AspectJ based aspect implementation.
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 - If a bean is created once per Ioc Container, scope is
If a bean is created once per Ioc Container, scope is singleton.
Q 9 - What is the scope of stateless bean?
Stateless bean is of singleton scope.
Q 10 - Which of the following class can be used to execute Sql queries in spring?
JdbcTemplate class can be used to execute Sql queries in spring.