What method is used to create database connection in
servlets?
Answer Posted / ravikiran(aptech mumbai)
either using DriverManager.getConnection
(or)
DataSource.getConnection()
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What is the use of servletconfig interface?
What do you mean by deployment descriptor?
What are life cycle methods of a servlet?
What is difference between get and post method?
What are the advantages of Servlet over CGI?
How to upload a file to the server using servlet?
Which interface must be implemented by all servlets?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What are the steps involved in placing a servlet within a package?
Can we refresh servlet in client and server side automatically?
Whether we can get deadlock situation in servlets?
What do you mean by web applications? Explain web application directory arrangement?
What are different methods of session management in servlets?
Tell us something about servletcontext interface.
What is SingleThreadModel interface?