Spring Online Quiz


Advertisements


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.

Questions and Answers

Answer : A

Explanation

JDBC, ORM, OXM, JMS, Transactions are the modules of Data Access/ Integration layer.

Answer : A

Explanation

Spring supports Constructor based, Setter based injections.

Answer : C

Explanation

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 - By default a bean is eagerly loaded.

A - False

B - True

Answer : B

Explanation

By default a bean is eagerly loaded.

Q 9 - What is the scope of bean in portlet context?

A - session

B - global-session

C - prototype

D - request

Answer : B

Explanation

Scope of bean in portlet context is global-session.

Q 10 - Which of the following class can be used to execute Sql queries in spring?

B - JDBCHelper

A - JdbcTemplate

C - DBHelper

D - DBTemplate

Answer : B

Explanation

JdbcTemplate class can be used to execute Sql queries in spring.


spring_questions_answers.htm

Advertisements