What method is used to create database connection in
servlets?

Answer Posted / ravikiran(aptech mumbai)

either using DriverManager.getConnection
(or)
DataSource.getConnection()

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whether we can get deadlock situation in servlets?

801


Why the container loads server at the application startup and how?

787


What is the life-cycle of servlets?

849


What is the workflow of a servlet?

893


What is the default http method in the servlet?

1011


What is the servlet?

832


What is a servlet?

837


Explain is servlet mapping?

760


What do you mean by deployment descriptor?

753


What are the different types of servlets?

738


Why servlet is mostly used?

960


Which java application server is the best?

759


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

776


How do you invoke a servelt?

826


What are the differences between servlet context vs servlet config?

812