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

Dependency Injection is a design pattern which implements Inversion of Control for software applications.

Answer : D

Explanation

All of the above statements are correct.

Answer : A

Explanation

Spring supports list, set, map or props tags to inject java collections.

Q 7 - How to get object of a service in spring framework?

A - Using new keyword

B - Using dependency injection

Answer : B

Explanation

In spring, dependency injection is used to get any object.

Answer : C

Explanation

ApplicationContext class acts as IoC Container.

Q 9 - What is the scope of stateful bean?

A - session

B - global-session

C - prototype

D - request

Answer : C

Explanation

Stateful bean is of prototype scope.

Answer : B

Explanation

BeanPostProcessor is an interface.

spring_questions_answers.htm
Advertisements