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.
Q 1 - What is true about cross-cutting concerns?
Cross-cutting concerns are the functions that span multiple points of an application.
Q 2 - What types of Dependency injection does spring supports?
Spring supports Constructor based, Setter based injections.
Q 3 - What is true about <set> collection configuration elements?
<set> tag is used to wire a list of values, but without any duplicates.
Q 4 - Which are the different modes of autowiring?
Autowiring modes are five: no, byName, byType, constructor, autodetect.
Q 5 - What is ContextRefreshedEvent event?
ContextRefreshedEvent event is published when the ApplicationContext is either initialized or refreshed.
Q 6 - What is Weaving?
Weaving is the process of linking aspects with other application types or objects to create an advised object.
Q 7 - What are the types of the transaction management Spring supports?
Spring supports both Programmatic and Declarative transaction management.
Struts can be integrated with spring.
Q 9 - If a bean is scoped to HTTP session, scope is
If a bean is scoped to HTTP session, scope is session.
Q 10 - What BeanPostProcessor does?
BeanPostProcessor defines callback methods that you can implement to provide your own instantiation logic, dependency-resolution logic etc.