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 are the types of servlets? Explain

0 Answers  


What is DSN and System DSN and what is the difference between them?

2 Answers  


What's the architecture of a servlet package?

0 Answers  


how the server will know its the same jsp page?

3 Answers   HCL,


How would you create deadlock on your servlet?

0 Answers  






What is the purpose of inter-servlet communication?

0 Answers  


Can we use javascript in Servlets?

2 Answers   Wipro,


What is generic servlet class?

0 Answers  


What is life cycle of Servlet?

0 Answers  


Does servlet have main method?

0 Answers  


How does Cookies work in Servlets?

0 Answers  


In servlets, Why do we need both GET and POST method implementations?

3 Answers   IBM,


Categories