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

AOP stands for Aspect Oriented Programming.

Answer : A

Explanation

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

Q 6 - What are the different points where weaving can be applied?

A - Compile time, load time

B - Compile time, run time

C - Run time

D - Compile time, load Time, Run time

Answer : D

Explanation

Weaving can be applied at Compile time, load Time and Run time.

Q 8 - Expression Language/ SpEL was introduced in which version of spring framework.

A - 1.0

B - 2.0

C - 3.0

D - 4.0

Answer : C

Explanation

Expression Language/ SpEL was introduced in 3.0 version of spring framework.

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