What method is used to create database connection in
servlets?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
either using DriverManager.getConnection
(or)
DataSource.getConnection()
| Is This Answer Correct ? | 10 Yes | 0 No |
Why do we need a constructor in a servlet if we use the init method?
What is cookie in servlet?
What type of protocols are used in HttpServlet?
What is servlet and how it works?
Why is init() method is used in servlets?
What is session tracking?
What is the difference between CGI and Servlet?
What is Servlet API used for connecting database?
Which method is called when reference variable is passed in system.net?
What is ServletContext() and what is its use?
9 Answers Prime Technology, TCS,
What are the life cycle methods of the servlet?
How does Cookies work in Servlets?