Spring interview questions part 1

Spring interview questions part 1

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. What is spring?

Correct Answer is : Spring is an open source development framework for enterprise Java.

2. Which is the way to provide configuration metadata to spring?

Correct Answer is : All of the above.

3. What is true about collection configuration elements?

Correct Answer is : This helps in wiring a list of values but without any duplicates.

4. What is bean autowiring?

Correct Answer is : Autowiring lets Spring resolve collaborators (other beans) for your bean by inspecting the contents of the BeanFactory without using and elements.

5. What is Advice?

Correct Answer is : This is the actual action to be taken either before or after the method execution.

6. Servlet listener which loads application context.

Correct Answer is : ContextLoaderListener

7. Method to retrieve Spring Applicationcontext.

Correct Answer is : WebApplicationContextUtils.getRequiredWebApplicationContext()

8. Class used to have full access to the Spring context’s life cycle machinery and dependency injection.

Correct Answer is : DelegatingFilterProxy

9. In order to leverage Spring application context machinery and configuration.

Correct Answer is : HttpRequestHandlerServlet

10. Interface implemented by object instantiated by HttpRequestHandlerServlet.

Correct Answer is : HttpRequestHandler

11. Attribute used to look up and delegate a particular root bean.

Correct Answer is : filter-name

12. ActionSupport class provides a method to access spring application context.

Correct Answer is : getWebApplicationContext()

13. Struts servlet used to handle web requests.

Correct Answer is : ActionServlet

14. Struts plugin used to integrate with spring.

Correct Answer is : ContextLoaderPlugin

15. Integration of JSF with Spring Application Context.

Correct Answer is : All of the mentioned

16. To handle web requests in JSF.

Correct Answer is : FacesServlet

17. Component of JSF, for user’s input in a form.

Correct Answer is : h:form

18. Tag used to provide result of web requests and is read only.

Correct Answer is : h:outputText

19. Tag which triggers server side requests.

Correct Answer is : h:commandButton

20. Tag used to integrate Spring with DWR.

Correct Answer is : dwr:remote

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon