Spring Interview Questions

Spring Interview Questions

  • What is Spring?
  • Explain Spring?
  • What are the different modules in Spring framework?
  • What is the structure of Spring framework?
  •   What is the Core container module?
  •   What is Application context module?
  •   What is AOP module?
  •  What is JDBC abstraction and DAO module?
  • What are object/relational mapping integration module?
  • What is web module?
  • What is Spring MVC?
  • What is a BeanFactory?
  • What is AOP Alliance?
  • What is Spring configuration file?
  • What does a simple spring application contain?
  • What is XMLBeanFactory?
  • What are important ApplicationContext implementations in spring framework?
  • Explain Bean lifecycle in Spring framework?
  • What kind of exceptions those spring DAO classes throw?
  • What is DataAccessException?
  • How can you configure a bean to get DataSource from JNDI?
  • How can you create a DataSource connection pool?                                                                                                                          Answer:-
           <bean id="dataSource">
                  <property name="driver">
               <value>${db.driver}</value>
                  </property>
                  <property name="url">
              <value>${db.url}</value>
                  </property>
                  <property name="username">
             <value>${db.username}</value>
                  </property>
                  <property name="password">
            <value>${db.password}</value>
                  </property>
               </bean>
  • How JDBC can be used more efficiently in spring framework?
  • How JdbcTemplate can be used?
  • How do you write data to backend in spring using JdbcTemplate?
  • Explain about PreparedStatementCreator?
  • Explain about BatchPreparedStatementSetter?
  • Explain about RowCallbackHandler and why it is used?

 

Leave a Reply


*