Spring Online Quiz



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.

Q 4

Can you inject null and empty string values in Spring?

A - Yes

B - No

Answer : A

Explanation

null and empty string values can be injected in spring beans.

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 - SpEL is part of core container.

A - False

B - True

Answer : B

Explanation

SpEL is a part of core container.

Answer : D

Explanation

Life cycle of a bean can be controlled using init() method or using InitializingBean / DisposableBean classes.

Q 10 - Which of the following class can be used to call Stored Procedures in spring?

A - SPHelper

B - JdbcTemplateCall

C - JdbcTemplate

D - SimpleJdbcCall

Answer : D

Explanation

SimpleJdbcCall class can be used to call Stored Procedures in spring.

spring_questions_answers.htm
Advertisements