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 global-session scope?
global-session scope instructs Spring IoC container to create a instance per HTTP application.
Q 4 - What is bean autowiring?
Using Bean autowiring, Spring resolve collaborators (other beans) for your bean by inspecting the contents of the BeanFactory without using <constructor-arg> and <property> elements..
Q 5 - What is aspect?
aspect module has a set of APIs to provide cross-cutting requirements.
Q 6 - How after-throwing advice works?
after-throwing advice runs after http request is processed and an exception occurred.
Q 7 - Which of the following database is not supported using jdbcTemplate?
NoSql is not supported using jdbcTemplate.
Q 8 - What stands true for spring framework?
Spring framework is a light weight framework.
Q 9 - How to handle shut down of IoC container?
Using registerShutdownHook() method, shut down of IoC container can be handled. Other methods do not exists.
Q 10 - Following class can be extended to create custom event in spring.
ApplicationEvent is used to create custom events.