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

Difference between doget and dopost?

0 Answers  


Is it good idea to create servlet constructor?

0 Answers  


Explain the working of service() method of a servlet.

0 Answers  


Directive Include and Action Include how both are working in JSP, what is the difference between both?In which suituation we have to choose these elements?

4 Answers   AZTEC,


How can a servlet refresh automatically if some new data has entered the database?

3 Answers   Citi Bank, CitiGroup, IBM, Satyam,






Why do we need servlet filter?

0 Answers  


what is the advantage of using Servlets over CGI programming?

4 Answers  


Explain the role of dispatcherservlet and contextloaderlistener.

0 Answers  


What is servlet and its use?

0 Answers  


What does the term localization refer to?

0 Answers  


What do you mean by httpservlet?

0 Answers  


What is httpservlet class?

0 Answers  


Categories