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

Beans, Core, Context, SpEL are the modules in core container.

Answer : A

Explanation

BeanFactory, ApplicationContext classes acts as IoC containers in Spring.

Answer : A

Explanation

Autowiring modes are five: no, byName, byType, constructor, autodetect.

Answer : C

Explanation

ref is used to reference already defined bean and it can be used using both setter method and constructor argument.

Q 8 - By default a bean is lazily loaded.

A - True

B - False

Answer : B

Explanation

By default a bean is eagerly loaded.

Q 9 - What is the scope of stateless bean?

A - global-session

B - singleton

C - prototype

D - request

Answer : B

Explanation

Stateless bean is of singleton scope.

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