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

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 4

Can you inject null and empty string values in Spring?

A - Yes

B - No

Answer : A

Explanation

null and empty string values can be injected in spring beans.

Q 7 - Core container has AOP as one of its module.

A - True

B - False

Answer : B

Explanation

AOP is not the part of spring core container.

Q 8 - SpEL is part of core container.

A - False

B - True

Answer : B

Explanation

SpEL is a part of core container.

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.

Answer : B

Explanation

BeanPostProcessor is an interface.


spring_questions_answers.htm

Advertisements
E-Books Store