Spring Objective Questions

Spring thumbnail
Please attempt at least 12 questions to get the test result.

1) Which of the following is correct about dependency injection? A - It helps in decoupling application objects from each other. B - It helps in deciding the dependencies of objects. C - It stores objects states in database. D - It stores object states in file system.


2) What is Advice?


3) What is a DispatcherServlet?


4) What are the ways to access Hibernate by using Spring?


5) What is global-session scope?


6) Which of the among is not a special bean in WebApplicationContext?


7) What could not return a Spring MVC controller ?


8) Where do you cannot declare Spring MVC controller? A. In a Spring application context XML configuration file B. Into the web.xml file of the web application C. Into the java code by using annotations D. Into the JSP pages


9) How the spring DispatcherServlet supports for returning the last-modification-date ,as specified by Servlet API?


10) Which of these statement is false regarding the given handlerMappings?


11) Which handlerMappings are being used by default if no handlerMapping beans are found?


12) Which is not a view in Spring Web Flow?


13) What is ContextStartedEvent event?


14) Which is not a MethodNameResolver ?


15) How could you externalize constants from a Spring configuration file or a Spring annotation into a .properties file?