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 is the procedure of invoking different servlet in a different application?

998


What’s the difference between forward() and sendredirect() methods?

1000


What do you mean by annotations in servlet?

1050


What is servlet mapping?

1003


How can we invoke another servlet in a different application?

1188


What are different ways for authentication of servlet?

1064


What is the advantage of Servlets when compared with other server side technologies?

2331


Which interface should be implemented by all servlets?

1204


What is servlet attributes and their scope?

1043


How to get the IP address of client in servlet?

1064


Why do we use sendredirect() method?

956


What's the advantages using servlets than using cgi?

985


Why servlet is mostly used?

1223


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

1049


How can a servlet be used to generate plain text instead of html?

936