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

Explain about the Try Block?

566


Where is mysql jdbc driver located?

530


How many rowset are available in jdbc?

673


Is jdbc secure?

520


Which package is used for jdbc application?

523






What is JDBC Transaction Management and why do we need it?

558


Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?

575


What is ODBC and JDBC? How do you connect the Database?

544


How many types of resultset are there in jdbc?

536


What is benefit of using preparedstatement in java?

505


How many ways can you update a result set?

569


Which database is used for java?

536


What is ojdbc?

539


Does jdbc use ssl?

506


What is db client?

508