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.

Answer : A

Explanation

Spring supports Constructor based, Setter based injections.

Q 8 - If a bean is scoped to HTTP request, scope is

A - session

B - global-session

C - prototype

D - request

Answer : D

Explanation

If a bean is scoped to HTTP request, scope is request.

Answer : D

Explanation

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

Q 10 - Can we inject value and ref both together in a bean?

A - True

B - False

Answer : A

Explanation

Both values and ref can be injected at a time in a bean.

spring_questions_answers.htm
Advertisements