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 are the difference between session and cookies in servlet? Explain
What is the servletconfig object?
What are the drawbacks of cgi?
Which is the methods of generated servlet?
What is the difference between the include() and forward() methods?
What are the phases of servlet life cycle?
What is servlet in tomcat?
How can we create deadlock situation in servlet?
What is load-on-startup in servlet?
Why the concept of single thread model interface is used?
Is java servlet still used?
Can servlet have a constructor ?
What is the difference between the servlets and cgi programs?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
Is it possible to have a constructor inside the servlet?