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 AOP stands for?
AOP stands for Aspect Oriented Programming.
Q 2 - Which are the correct implementation classes of ApplicationContext?
FileSystemXmlApplicationContext is the implementation class of ApplicationContext. Other mentioned classes do not exists.
Q 3 - What is true about <map> collection configuration elements?
<map> tag is used to inject a collection of name-value pairs where name and value can be of any type.
Q 4 - What is byName mode of autowiring?
byName mode of autowiring is autowiring by property name. Spring tries to match and wire its properties with the beans defined by the same names in the configuration file.
Q 5 - What is ContextClosedEvent event?
This event is published when the ApplicationContext is closed using the close() method on the ConfigurableApplicationContext interface.
Q 6 - How before advice works?
before advice runs before a method execution.
AOP is not the part of spring core container.
Q 8 - If a bean is scoped to HTTP request, scope is
If a bean is scoped to HTTP request, scope is request.
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 - Where do you define DispatcherServlet?
DispatcherServlet is defined in web.xml of web application.