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

Spring supports Constructor based, Setter based injections.

Answer : A

Explanation

Autowiring modes are five: no, byName, byType, constructor, autodetect.

Q 7 - What are the types of the transaction management Spring supports?

A - Programmatic transaction management

B - Declarative transaction management

C - Both of above.

D - None of above.

Answer : C

Explanation

Spring supports both Programmatic and Declarative transaction management.

Q 8 - Can we integrate Struts with Spring.

A - Yes

B - No

Answer : A

Explanation

Struts can be integrated with spring.

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

BeanPostProcessor defines callback methods that you can implement to provide your own instantiation logic, dependency-resolution logic etc.

spring_questions_answers.htm
Advertisements