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

Write the code to get the server information in servlet.

1065


How do I know if java is running on linux?

1125


What are the life cycle methods of a servlet?

1052


Whether we can get deadlock situation in servlets?

1074


How the JSP file will be executed on the Server side?

1140


Which event is fired at the time of session creation and destroy?

1395


What do you mean by default initialization in java servlet?

1101


What are some advantages of storing session state in cookies?

1019


Which method is called when reference variable is passed in system.net?

2408


how the HTML data stored in web server?

2636


Explain url encoding?

990


What are the different methods of session management in servlets?

1027


What is difference between server and servlet?

1092


What are the different types of servlets?

1015


What does the term localization refer to?

1113