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

BeanFactory, ApplicationContext classes acts as IoC containers in Spring.

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 : D

Explanation

Before, after, after-returning, after-throwing, around are the five types of advice that spring supports.

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 - If a bean can be created any number of times, scope is

A - session

B - global-session

C - prototype

D - request

Answer : C

Explanation

In prototype scope, a bean can be created any number of times.

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