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

How many categories of jdbc drivers are there?

489


What is jdbc drivers in java?

502


What are the types of statements in jdbc?

531


Which interface is responsible for transaction management in jdbc?

464


What is meant by jdbc?

526






What are four types of JDBC driver?

570


What is serialization and deserialization in java programming?

524


Name the method, which is used to prepare a callablestatement.

510


Can I use JDBC to execute non-standard features that my DBMS provides?

557


What is the difference between ojdbc6 and ojdbc7?

476


What is the use of dialect?

570


How can I get information about foreign keys used in a table?

534


What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?

515


How MS-Access DB can be accessed over a network, using JDBC API?

2022


What does the jdbc resultset interface?

535