Spring interview questions and answers

Spring interview questions and answers for freshers and experienced candidates. These interview questions and answers on Spring will help you strengthen your technical skills, prepare for the interviews and quickly revise the concepts. Many candidates appear for the interview for one role - many of the them give the right answers to the questions asked. The one who provides the best answer with a perfect presentation is the one who wins the interview race. The set of Spring interview questions here ensures that you offer a perfect answer to the interview questions posed to you.
          
Download HR interview
Download CV samples
Download IT interview

Spring interview questions and answers


Part 1   Part 2   Part 3   Part 4   Part 5
<<Previous  Next >> 
What is Spring?

Latest answer: Spring is a framework that resolves common problems in JEE architecture. Managing business objects and encouraging practices such as programming interfaces rather than classes.............
Read answer

Explain the different modules in Spring framework.

Latest answer: Spring has the following modules: The Core container module – The fundamental functionality is provided by this module. Application context module - Spring is a framework because of this module. This module extends the concept of BeanFactory................
Read answer

What are the Core container module and Application context module?

Latest answer: Core Container Module: This module is the fundamental module of spring framework. For a spring-based application, BeanFactory is the core. The Spring framework was developed on top of this module.............
Read answer

What is a BeanFactory and XMLBeanFactory?

Latest answer: BeanFactory: Bean factory is a container. It configures, instantiates and manages a set of beans. These beans are collaborated with one another and have dependencies among themselves....................
Read answer

What is AOP Alliance?

Latest answer: AOP Alliance: AOP Alliance is an open source project. Promoting adoption of AOP and interoperability among different AOP implementations with the help of interfaces..............
Read answer

Explain the concepts and purpose of Spring configuration file.

Latest answer: A spring configuration file is an XML file which contains the information about classes and describes the process of configuration..................
Read answer

What does a simple spring application contain?

Latest answer: A spring application is like any other Java application. The applications contain classes, each of them perform a specific task with the application. All these classes are...............
Read answer

Explain Bean lifecycle in Spring framework.

Latest answer: The bean’s definition is found by the spring container from the XML file and instantiates the bean. All the properties specified in the bean definition are populated by spring using dependency injection...............
Read answer

What is bean wiring?

Latest answer: Bean wiring is the process of combining beans with Spring container. The required beans are to be informed to the container................
Read answer

Explain how to add a bean in spring application.

Latest answer: The id attribute of the bean tag specifies the name of the bean and the fully qualified class name is specified by the class attribute.............
Read answer

What are singleton beans and how can you create prototype beans?

Latest answer: All beans defined in the spring framework are singleton beans. The bean tag has an attribute by name ‘singleton’............
Read answer

What are Inner Beans?

Latest answer: A bean inside another bean is known as Inner Bean. They are created and used on the fly, and can not be used outside the enclosing beans...............
Read answer

What is Auto wiring? What are different types of Autowire types?

Latest answer: Searching for objects with the same name of object property is called auto wiring in Spring. By default, Spring framework enables the auto wiring..............
Read answer

What is meant by Weaving? What are the different points where weaving can be applied?

Latest answer: The process of applying aspects to a target object for creating a new proxy object is referred to as weaving. These aspects are woven at the following specified join points..............
Read answer

Explain the different types of AutoProxying.

Latest answer: BeanNameAutoProxyCreator: This proxy is used to identify beans to proxy through a list of names. It checks the matches that are direct, “xxx” and “*xxx”............
Read answer

What is DataAccessException?

Latest answer: DataAccessException is an unchecked RuntimeException. These type of exceptions are unforced by users to handle................
Read answer

Explain about PreparedStatementCreator.

Latest answer: To write data to database, PreparedStatementCreator is the most commonly used interface. The interface contains one method by name createPreparedStatement()..............
Read answer

Explain about BatchPreparedStatementSetter.

Latest answer: Updating more than one row at a time, the BatchPreparedStatementSetter is used. This interface has setValues() and getBatchSize() exceptions................
Read answer

Explain about RowCallbackHandler and why it is used.

Latest answer: ResultSet is generally used to navigate the records. The spring framework is provided with RowCallbackHandler interface................
Read answer

Test your Java skills

Java part 1 (39 questions)
Java part 2 (40 questions)
EJB (20 questions)
JDBC (20 questions)
Applet (20 questions)
Struts (21 questions)
Servlets (20 questions)
Java web services (20 questions)

<<Previous  Next>>

Also read

Spring 2.5 Aspect Oriented Programming

In this chapter, we're going to examine some design decisions that are important for building better applications. In these design decisions, the AOP plays a signifi cant role because it provides smart solutions to common crosscutting problems.

Write your comment - Share Knowledge and Experience

 

 
Interview questions
Home | Write for us and earn | My key skills | About us | Sitemap | Contact us