REGISTER FREE to Receive Instant Job

Saturday, 6 December 2014

Spring Interview Questions

1- What is Spring?
Spring is a framework that is based on two concepts-

  • IOC (Inversion of Control).
  • AOP (Aspect Oriented Programming).

2-What is IOC and DI?
IOC – IOC is a design pattern which states that an Application Developer must focus only on the usage of objects not on the creation of objects and managing their life cycles i.e. this design pattern takes the responsibility of creating objects & managing their life cycles from the Application Developers & assign it to a runtime environment called IOC container. The motto behind this shifting of control from the developer to the IOC container is to facilitate loose coupling between objects. When objects are loosely coupled, their maintanence is easy.
3-What is the role of IOC container in spring?

IOC container is responsible to:

  • create the instance
  • configure the instance, and
  • assemble the dependencies

4-What are the types of IOC container in spring?

There are two types of IOC containers in spring framework.


  • BeanFactory
  • ApplicationContext

5-What is the difference between BeanFactory and ApplicationContext?

BeanFactory is the basic container whereas ApplicationContext is the advanced container. ApplicationContext extends the BeanFactory interface. ApplicationContext provides more facilities than BeanFactory such as integration with spring AOP, message resource handling for i18n etc.
6-In which scenario, you will use singleton and prototype scope?

Singleton scope should be used with EJB stateless session bean and prototype scope with EJB stateful session bean.
7-What are the advantages of JdbcTemplate in spring?

Less code: By using the JdbcTemplate class, you don't need to create connection,statement,start transaction,commit transaction and close connection to execute different queries. You can execute the query directly.
8-What are the advantages of spring AOP?

AOP enables you to dynamically add or remove concern before or after the business logic. It is pluggable and easy to maintain.
9-What is the front controller class of Spring MVC?

The DispatcherServlet class works as the front controller in Spring MVC.
10-How can you fetch records by spring JdbcTemplate?

You can fetch records from the database by the query method of JdbcTemplate. There are two interfaces to do this:

  • ResultSetExtractor
  • RowMapper

47 comments:

  1. The future of software testing is on positive note. It offers huge career prospects for talented professionals to be skilled software testers. Software testing institutes in Chennai

    ReplyDelete
    Replies
    1. Hibernate Online Training Hibernate Online Training Hibernate Training in Chennai Hibernate Training in Chennai Java Online Training Java Online Training

      Hibernate Training Institutes in ChennaiHibernate Training Institutes in Chennai Java Online Training Java Online Training Java Online Training Java Online Training

      Delete
    2. Nice post. Thanks for the shearing valuable information. I really fiend this type blog. Special thanks to writer. web designing jalandhar

      Delete
  2. Thanks for your informative article on UFT automation testing tool. Your post helped me to understand the features and functionality of QTP automation testing tool. QTP training in Chennai

    ReplyDelete
  3. Thank you for the informative post. It was thoroughly helpful to me. Keep posting more such articles on software testing course in Chennai and enlighten us.

    ReplyDelete
  4. Excellent article on load testing!!! This testing exhibits the ability of a software application/system to withstand actual load. Loadrunner Course in Chennai | Loadrunner training institute in Chennai

    ReplyDelete
  5. Testing is the only way to deliver reliable products in the Information Technology market. Articles like this are vital in improvising one's ability as a software testing professional. Thank you so much for sharing this information in here. Keep blogging.

    Software testing training in chennai | Software testing training | Software testing training chennai | Software testing course chennai

    ReplyDelete
  6. Automation will make any work to be completed so soon(Selenium training in chennai), in addition to this recording the actions is possible with automated tool. Your content explicitely states the same(Selenium testing course in chennai). Thanks for sharing this worth able content in here. This was very useful to me as well. Keep blogging like this.

    ReplyDelete
  7. Technology place a vital part in humans ecosystem. So in order to survive one must be up to date. Thanks for sharing this information in here. Keep blogging article like this. I have bookmarked this page for future reference.


    Hadoop Training Chennai | Big Data Training
    | JAVA training in Chennai

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Really interesting content which is unique which provided me the required information.
    Selenium Training in Chennai | best selenium testing training institute in Chennai.

    ReplyDelete
  10. Really interesting content which is unique which provided me the required information.
    Selenium Training in Chennai | best selenium testing training institute in Chennai.

    ReplyDelete
  11. Testing is very important before launching a web application or a mobile application because it can detect the error at an early stage, and it reduces the work of the developer.
    manual testing training institute in chennai | mobile application training in chennai | FITA Academy Chennai

    ReplyDelete
  12. The best thing about HTML5 is that it allows the developers to embed the video files, audio files, and high quality graphics without any third party applications.
    html5 training in chennai | html5 training institutes in chennai | FITA Academy Chennai

    ReplyDelete
  13. Great content thanks for sharing this informative blog which provided me technical information.
    FITA Academy reviews | FITA Velachery | FITA Training

    ReplyDelete
  14. The main thing which i like about web designing is that it needs creativity and we need to work differently acccording to our clients need this needs a creativity and innovation.
    web designing course in chennai|web designing training in chennai|web designing courses in chennai

    ReplyDelete
  15. Hi, actually I'am new to angularJs and infact I'am learning angularjs with online training. I'am having doubt, if you could solve the doubt for me that would be very helpful. The doubt is, how can I reset a “$timeout”, and disable a “$watch()”?
    Regards,
    angularjs training in Chennai | angularjs training | angularjs training Chennai

    ReplyDelete
  16. The best thing about HTML5 is that it allows the developers to embed the video files, audio files, and high quality graphics without any third party applications.
    html5 training in chennai | html5 training institutes in chennai | FITA Academy reviews

    ReplyDelete
  17. his blog is so nice to me. I will keep on coming here again and again and great e commerce website designing ..:) ecommerce web designing

    ReplyDelete
  18. Wow wat a post amazing questions on spring concepts..QTP Training in Chennai.

    ReplyDelete
  19. This wordpress module is made for shippers who need to offer items from their 3dcart Online Store inside their WordPress blog .
    wordpress shop

    ReplyDelete
  20. Selenium is the best tool for software testing automation and it is used globally by the top companies across globe. Get training to use selenium and star yur career as a siftware tester today.
    Selenium training in Chennai | Selenium course in Chennai | Selenium training institute in Chennai

    ReplyDelete
  21. Manual testing is the process of testing the software manually in order to detect the software defects. It requires the role of tester to deliver the product efficiently to the customer and use all of its application to ensure that it works correctly
    manual testing training institute in chennai | manual testing training

    ReplyDelete
  22. In India thenumber of smartphone users have been on a rise. Among them also the people using android is way to high. Being an android developer would be the dorrect career choice.
    Android training in Chennai | Android course in Chennai | Android training institute in Chennai

    ReplyDelete
  23. Great! Thanks for sharing the information. That is very helpful for increasing my knowledge in this fiel
    Red Ball | | duck life | Slitherio
    Red Ball 2 | Red Ball 3 | Red Ball 4

    ReplyDelete
  24. Excellant post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    cloud computing training in chennai | cloud computing courses in chennai

    ReplyDelete
  25. Excellant post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Node JS training in chennai | Node JS training institute in chennai

    ReplyDelete
  26. Excellant post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Python Training in Chennai | Python Course in Chennai

    ReplyDelete
  27. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    digital marketing course in Chennai | digital marketing training in Chennai

    ReplyDelete
  28. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    web designing course in Chennai | web designing training in Chennai

    ReplyDelete
  29. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    PHP Training in Chennai | PHP Course in Chennai

    ReplyDelete
  30. This technical post helps me to improve my skills set, thanks for this wonder article I expect your upcoming blog, so keep sharing...
    Regards,
    PHP Training in Chennai | Best PHP training in Chennai

    ReplyDelete
  31. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    salesforce training in chennai | salesforce training institute in chennai

    ReplyDelete
  32. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    oracle training in chennai | oracle training institutes in chennai

    ReplyDelete
  33. A debt of gratitude is in order for requiring some serious energy share this post. It is truly useful. I propose to visit this site to my group members. Please continue posting this way.
    Regards,
    Selenium Training in Chennai | Selenium Testing Training in Chennai | Selenium Course in Chennai

    ReplyDelete

  34. Thanks for your informative post on selenium automation testing tool. Your article helped me a lot in understanding the future of automation testing tool and its career prospects. Selenium Training | Best Selenium training institute in Chennai|Selenium Training in Chennai

    ReplyDelete


  35. The blog or and best that is extremely useful to keep I can share the ideas
    of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
    tanki online | 2048 game |
    tanki online game

    ReplyDelete

Popular Posts

Powered by Blogger.

About Me

My photo

JobsAcid is a 'job search engine' to provide finding a job on the internet easier for the user. It has designed as huge selection of job offerings on the same search engine.