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

Answer : A

Explanation

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

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 6 - What are the different points where weaving can be applied?

A - Compile time, load time

B - Compile time, run time

C - Run time

D - Compile time, load Time, Run time

Answer : D

Explanation

Weaving can be applied at Compile time, load Time and Run time.

Answer : C

Explanation

Hibernate can be accessed by both ways either using Inversion of Control with a Hibernate Template and Callback or extending HibernateDAOSupport and applying an AOP Interceptor node.

Q 8 - SpEL is part of core container.

A - False

B - True

Answer : B

Explanation

SpEL is a part of core container.

Answer : A

Explanation

after advice runs after a method execution regardless of its outcome.

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