This book contains basic to expert level Spring interview questions that an interviewer asks. Each question is accompanied with an answer so that you can prepare for job interview in short time.
We have compiled this list after attending dozens of technical interviews in top-notch companies like- Google, Facebook, Ebay, Amazon etc.
Often, these Spring questions and concepts are used in our daily programming work. But these are most helpful when an Interviewer is trying to test your deep knowledge of Spring.
Sample questions are:
What are the cases in which Autowiring may not work in Spring framework?
Given a choice between declarative and programmatic Transaction Management, which method will you choose?
Is it allowed to inject null or empty String values in Spring?
What are the different types of events provided by Spring framework?
What are the benefits provided by Spring Framework’s Transaction Management?
What is the difference between DispatcherServlet and ContextLoaderListener in Spring?
What is a Java-based Configuration in Spring?
What is the difference between Full @Configuration and ‘lite’ @Beans mode?
In Spring framework, what is Annotation-based container configuration?
How will you switch on Annotation based wiring in Spring?
What are the two ways to enable RequiredAnnotationBeanPostProcessor in Spring?
What is @Qualifier annotation in Spring?
How Spring framework makes JDBC coding easier for developers?
What are the benefits of using Spring DAO?
What are the different ways to use Hibernate in Spring?
What types of Object Relational Mapping (ORM) are supported by Spring?
How will you integrate Spring and Hibernate by using HibernateDaoSupport?
What are the different types of the Transaction Management supported by Spring framework?
What is Aspect Oriented Programming (AOP)
What is an Aspect in Spring?
In Spring AOP, what is the main difference between a Concern and a Cross cutting concern?
What is a Joinpoint in Spring AOP?
What is an Advice in Spring AOP?
What are the different types of Advice in Spring AOP?
What is a Pointcut in Spring AOP?
What is an Introduction in Spring AOP?
What is a Target object in Spring AOP?
What is a Proxy in Spring AOP?
What are the different types of AutoProxy creators in Spring?
What is Weaving in Spring AOP?
In Spring AOP, Weaving is done at compile time or run time?
What is XML Schema-based Aspect implementation?
What is Annotation-based aspect implementation in Spring AOP?
How does Spring MVC framework work?
What is DispatcherServlet?
Can we have more than one DispatcherServlet in Spring MVC?
What is WebApplicationContext in Spring MVC?
What is Controller in Spring MVC framework?
What is @Controller annotation in Spring MVC?
What is @RequestMapping annotation in Spring?
What are the main features of Spring MVC?
What is the difference between a Singleton and Prototype bean in Spring?
How will you decide which scope- Prototype or Singleton to use for a bean in Spring?
What is the difference between Setter and Constructor based Dependency Injection (DI) in Spring framework?
What are the drawbacks of Setter based Dependency Injection (DI) in Spring?
What are the differences between Dependency Injection (DI) and Factory Pattern?
In Spring framework, what is the difference between FileSystemResource and ClassPathResource?
Name some popular Spring framework annotations that you use in your project?
How can you upload a file in Spring MVC Application?