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

Is jdbc connection secure?

884


What are 4 drivers available in JDBC? At what situation are four of the drivers used?

900


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

939


What is correlated subquery?

2230


What is the role of the jdbc drivermanager class?

881


What is database deadlock ?

1067


How to check jdbc driver version in websphere?

1014


Differentiate between stored procedure and functions?

1003


Is not bound in this context unable to find jdbc spring boot?

847


How can you make the connection using jdbc?

985


What are the 4 types of jdbc drivers?

931


Which jdbc drivers will run your program?

871


Which of the attributes in the monitoring tab for a jdbc connection pool in the administrative console tell us how many clients are currently waiting for a connection?

864


What is jdbc oracle thin?

825


What are different types of ResultSet?

994