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

What is savepoint in jdbc?

663


What are the common tasks of JDBC?

718


How to insert an image or raw data into database?

725


What do you understand by jdbc datasource?

765


What is jdbc stand for?

670






Result set’s index starts with 0 or 1?

726


Discuss the significances of jdbc.

671


What are the classes and methods used for sending sql statements to database?

726


What is jdbc servlet?

685


Give an example for getXXX method?

722


How we store procedure in oralce for callable statements in jdbc

2028


What does jdbc setmaxrows method do?

677


Does jdbc use ssl?

657


Why would you use setautocommit(false) in jdbc?

869


What is the role of the jdbc drivermanager class?

659