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.

Q 3 - What is default scope of bean in Spring framework?

A - singleton

B - prototype

C - request

D - session

Answer : A

Explanation

singleton is the default scope of any spring bean.

Q 7 - What are the types of the transaction management Spring supports?

A - Programmatic transaction management

B - Declarative transaction management

C - Both of above.

D - None of above.

Answer : C

Explanation

Spring supports both Programmatic and Declarative transaction management.

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 - Which class is used to map a database row to a java object in spring?

A - ResultSet

B - RowMapper

C - RowSetMapper

D - ResultSetMapper

Answer : B

Explanation

RowMapper class is used to map a database row to a java object in spring.

Q 10 - Can be bean be configured to have an inner bean?

A - True

B - False

Answer : A

Explanation

A bean can be configured to have an inner bean.

spring_questions_answers.htm
Advertisements