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 is represented by the connection object?

738


List the common jdbc exceptions ?

766


What is jdbc vs odbc?

703


What does the jdbc resultsetmetadata interface?

706


Which jdbc driver is the fastest driver?

762


How do I load a database driver with JDBC 4.0 / Java 6?

738


What is a jdbc driver and how many jdbc drivers are available?

767


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

657


Where is jdbc used?

677


How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?

771


What is the use of the statement in jdbc?

670


What is layer in communication?

636


What are the types of statements in jdbc?

705


How many rowset are available in jdbc?

821


Does the database server have to be running Java or have Java support in order for my remote JDBC client app to access the database?

706