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

Describe how the jdbc application works.

1030


What are jdbc?

961


What does executequery return in java?

930


What are the exceptions in jdbc?

966


Explain about DSN?

979


What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

898


How do I find whether a parameter exists in the request object?

916


How do I know which jdbc driver to use?

1009


Is jdbctemplate thread safe?

904


What causes no suitable driver error?

971


What is jdbc stand for?

931


How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?

1085


What is com mysql jdbc driver?

925


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

1025


Why isn't the java.sql.DriverManager class being found?

1005