Spring Framework Interview Questions for Experienced Java developers
2 min readFeb 18, 2023
- What is Spring framework? Why do you use it?
- What is dependency injection?
- What is Inversion of Control?
- What is difference between dependency injection and inversion of control?
- What is Spring @Transactional — isolation, propagation ? — click here
- What is difference between spring IOC and factory design pattern?
- What is the difference between @Configuration and @Component in Spring?
- What is spring bean?
- What is the default isolation level of @transactional? - REPEATABLE READ
- What are different scopes a Spring bean can be?
- Does spring bean in Singleton scope are thread-safe?
- What is auto wiring?
- Does Spring beans are garbage collected in JVM?
- Which one is better configuring your application using XML, or Annotations?
- What are different types of dependency injection supported by Spring?
- What is difference between Constructor and Setter injection?
- What is difference between @Contorller, @Service, and @Repository in Spring Framework?
- What is difference between Controller and RestController?
- What is alternative of Spring for core Java application?
- How does JdbcTemplate class helps you?
- How do you test Spring Framework application?
- How does JmsTemplate class helps you?
- What is RestTemplate and WebClient? What are difference between RestClient and WebClient?
- What is the current version of Spring framework? Which version have you worked before?
- What are the new features introduced in Spring 6.0 version?
- Which books you have read about Spring framework?
- If you have to change one thing in Spring framework, what do you change?
- What are common Spring Framework annotations have you used in your project?
- What are annotations? How do you define custom annotations?
- What are the features of SpringBoot over spring framework?
- What is the difference between @Controller and @RestController?
- What happen if we ignore @Service Annotation in a Class?
- Explain about @Component, @Service, @Repository, @EnableAutoConfiguration, @EntityScan, @Transient, @Bean?
- How to handle Exception in Spring?
- How to enable Caching in your Application?
- What are the different scopes of Bean?
- How to inject a Prototype bean to Singleton bean?
- What is the use of Actuator in SpringBoot?
- What is your experience with Spring Security? OAuth Authentication?
If you liked the article, please don’t forgot to clap and follow me for more such articles. Please let me know in the comments if you have any suggestion or solution.
Happy Reading !!!