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...

How do you create Connection?

Answer Posted / ramu

. To create connection first we have to load the driver using
class.forName(drivername)
. Get a connection to the database using DriverManager.getConnection()
after wards you can create Statement object and u can
execute the query

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the jdbc statements?

966


What are the factors that the jdbc driver performance depends upon?

956


Write an sql to find all records having all numeric characters in a field ?

944


What is hbm xml?

858


What is the function of setautocommit?

1216


What is the role of class.forname while loading drivers?

991


What is JDBC Driver interface?

1108


What is phantom read and which isolation level prevents it?

1070


What does jdbc stand for?

922


What is the difference between execute, executeQuery, executeUpdate?

1009


How many types of jdbc drivers are available?

923


What is jdbc odbc bridge?

933


Why we use jdbc instead of odbc?

960


Which is better jpa or jdbc?

896


How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?

1000