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

Differentiate between a statement and a preparedstatement.

569


Describe how the jdbc application works.

604


How can we set null value in jdbc preparedstatement?

615


What are drivers available?

693


How can we disable a constraint ?

654






Is jdbc object oriented?

579


What is a statement?

654


Does jdbctemplate close connection?

569


What is the use of JDBC DriverManager class?

627


How we can you use preparedstatement.

633


What are the different types of resultset?

619


What are different types of JDBC Drivers?

595


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

621


Why do we need jdbc api?

568


Explain Basic Steps in Writing a Java Program Using Jdbc?

674