Thanks to visit codestin.com
Credit goes to www.tutorialspoint.com

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

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 - Which class is used to map a database row to a java object in spring?

A - ResultSet

B - RowMapper

C - RowSetMapper

D - ResultSetMapper

Answer : B

Explanation

RowMapper class is used to map a database row to a java object in spring.

Answer : B

Explanation

DispatcherServlet is defined in web.xml of web application.

spring_questions_answers.htm
Advertisements