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 / suresh kumar

to create connection first we have to load the driver using
class.forName(drivername)
then register the driver using DriverManager.getConnection()
afterwards you can create Statement object and u can
execute the qurey

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are database warnings in jdbc and how can we handle database warnings in jdbc?

970


Why would you use setautocommit(false) in jdbc?

1178


What is meant by dao?

920


What is com mysql jdbc driver?

903


How do I start debugging problems related to the JDBC API?

1001


Explain jdbc savepoint?

953


How to set the attribute concurrency in resultset?

913


Where is mysql jdbc driver located?

1012


Does sql allow null values ?

944


What is the use of setFetchSize() and setMaxRows() methods in Statement?

979


What are the differences between statement and preparedstatement interface?

964


What is odbc. how is it related to sql cli?

1023


Why do I have to reaccess the database for Array, Blob, and Clob data?

1045


Explain the various types of locking system in jdbc?

862


What is odbc jdbc?

986