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

How to maintain security in servlets?

2 Answers  


How to run a servlet program?

7 Answers   Infosys,


What are the types of protocols supported by httpservlet ?

0 Answers  


i am bca student,give me suggest for bright future

18 Answers   BSNL, Future Considerations,


what happens if we wont use destroy()?

4 Answers   IBM,






What are cookies and how will you use them?

3 Answers  


why are extending GenericServlet and why are extending HttpServlet explain?

7 Answers  


What are the phases of the servlet life cycle?

0 Answers  


What are the different mode that servlets can be used?

0 Answers  


Explain how to improve Servlet Performance?

0 Answers   BirlaSoft,


What is the role of the webserver?

4 Answers  


What is load-on-startup in servlet?

0 Answers  


Categories