How do you know which driver is connected to a database?

Answer Posted / venkat

Whenever u want to connect with DB
U need to config two
They r
1.Class.forName("DriverClass name");
2.Connection con =driverManager.getConection("URL Of
Manager Class");

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest version of JDBC? What are the new features added in that?

521


What is the JDBC syntax for using a literal or variable in a standard Statement?

559


What is jdbc in java?

489


What is @entity in java?

526


What is jdbc and why is it required?

460






What is JDBC ResultSet?

590


Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?

485


What is new in JDBC 2.0?

572


Which type of JDBC driver is the fastest one?

569


How can we move the cursor in a scrollable result set?

545


There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?

614


How we can you use preparedstatement.

550


What does the connection object represents?

557


What are the jdbc drivers in java?

521


Why prepared statements are faster?

531