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

AOP stands for Aspect Oriented Programming.

Answer : A

Explanation

FileSystemXmlApplicationContext is the implementation class of ApplicationContext. Other mentioned classes do not exists.

Answer : C

Explanation

<map> tag is used to inject a collection of name-value pairs where name and value can be of any type.

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

Q 9 - If a bean is scoped to HTTP session, scope is

A - global-session

B - session

C - prototype

D - request

Answer : B

Explanation

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

Answer : B

Explanation

DispatcherServlet is defined in web.xml of web application.

spring_questions_answers.htm
Advertisements