Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the difference between session and cookies in servlet? Explain

1038


What is the servletconfig object?

1035


What are the drawbacks of cgi?

1032


Which is the methods of generated servlet?

1217


What is the difference between the include() and forward() methods?

1077


What are the phases of servlet life cycle?

1108


What is servlet in tomcat?

1050


How can we create deadlock situation in servlet?

1428


What is load-on-startup in servlet?

1137


Why the concept of single thread model interface is used?

990


Is java servlet still used?

1038


Can servlet have a constructor ?

1039


What is the difference between the servlets and cgi programs?

987


What is the requirement of servlet config and servlet context implemented and how are they implemented?

994


Is it possible to have a constructor inside the servlet?

1006