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

global-session scope instructs Spring IoC container to create a instance per HTTP application.

Q 7 - Which of the following is part of Data Access layer in Spring framework?

A - Beans

B - Aspects

C - JMS

D - Context

Answer : C

Explanation

JMS is the part of Data Access layer in Spring framework.

Q 8 - If a bean is created once per Ioc Container, scope is

A - singleton

B - global-session

C - prototype

D - request

Answer : A

Explanation

If a bean is created once per Ioc Container, scope is singleton.

Answer : D

Explanation

Using registerShutdownHook() method, shut down of IoC container can be handled. Other methods do not exists.

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