What method is used to create database connection in
servlets?

Answers were Sorted based on User's Feedback



What method is used to create database connection in servlets?..

Answer / ravikiran(aptech mumbai)

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

Is This Answer Correct ?    10 Yes 0 No

What method is used to create database connection in servlets?..

Answer / raghu

DataSource.getConnection()

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Servlets Interview Questions

What is httpservlet class?

1 Answers  


How would you create deadlock on your servlet?

1 Answers  


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

0 Answers  


How servlet is created?

1 Answers  


How can a servlet be used to generate plain text instead of html?

1 Answers  


What is the use of httpservletresponsewrapper?

1 Answers  


What is the difference between context parameter and context attribute?

1 Answers  


What is the difference between 2 types of servlets?

1 Answers  


What are the steps that are required to handle the multi-threading?

1 Answers  


When servlet object is created?

1 Answers  


What is Servlet API used for connecting database?

1 Answers  


What is with the javax.servlet package naming?

2 Answers  


Categories