How do you create Connection?

Answer Posted / mathivanan

Connection is the second step of JDBC followed by
Driver_Loading. It gives the connection between the
database Driver's Manager and our java program.

Syntax: Connection con_obj = DriverManager.getConnection
("url", "login_name", "password");

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the jdbc connection interface?

538


Is jdbctemplate thread safe?

482


Expalin the method of calling a stored procedure from jdbc.

543


What is savepoint in jdbc?

511


What is an SQL Locator?

587






What do you mean by batch processing in jdbc?

525


Does jdbc require oracle client?

523


Is jdbc and orm?

499


What is the use of statement in jdbc?

466


When do we use execute method in java jdbc?

543


What is the function of setautocommit?

648


Why we use while rs next ())?

525


List some new features available in jdbc 4.0?

480


What is xe in oracle jdbc url?

537


What is the difference between ojdbc6 and ojdbc7?

467