Since Spring is very important in application development world, its also quite popular among interviewers. You will see lot of questions from Spring framework in both Java and JEE interviews. Its even more important in web and enterprise development world due to Spring MVC framework but we will see it later.
In this post, I am going to share you some of the frequently asked Spring framework questions from Java interviews. These are from my own experience, given I have attended so many interviews in last 7 years of my careers :) .
I am not providing answers for these questions because its mostly for preparation purpose, if I do then when I use it to refresh my knowledge I won't be able to use it as practice test. Hopefully, I will write another post answering Spring questions from this article.
Spring Framework Interview Questions for Experienced Java developers
- 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 difference between spring IOC and factory design pattern?
- What is spring bean?
- 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 depdency injection supported by Spring?
- What is difference between Constructor and Setter injection?
- What is alternative of Spring for core Java application?
- How does JdbcTemplate class helps you?
- How does JmsTemplate class helps you?
- What is the current version of Spring framework? Which version have you worked before?
- What are the new features introduced in Spring 4.0 version?
- Which books you have read about Spring framework?
- If you have to change one thing in Spring framework, what do you change?
These Spring interview questions are mostly for Java and JEE developer position for projects which uses both Spring and Hibernate. Some of them are asked in consultancy companies like Capegemini, Tech Mahindra and others are different small companies. Some of them are also collected from internet during my preparation for these interviews. If anyone wants to answer them, go ahead and post answers as comments and I will give you credit :)
All the best for your Java interviews. Don't forget to prepare some Spring Framework Interview questions if your Job description mentioned about Spring and Hibernate.
No comments:
Post a Comment