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 life cycle of Servlet?

0 Answers  


How we can call a jsp from the servlet?

0 Answers  


what is servlet and what you get when we use servlets?

7 Answers   GGK Tech, Satyam,


what are the different services provided by the web server?

2 Answers  


What is the need of servlet filters?

0 Answers  


What are the differences between forward() method and sendredirect() methods?

0 Answers  


What is session variable in servlets?

1 Answers  


why are extending GenericServlet and why are extending HttpServlet explain?

7 Answers  


Is java servlet still used?

0 Answers  


How do you track a user session in servlets?

3 Answers  


What is session?

0 Answers  


What is httpservlet class?

0 Answers  


Categories