How to create Connection interface object because it is
Interface , Interface is not instansiated?

Answer Posted / venkateswararao

connection interface is provided by the java , i.e they only
gives the interface but not implemented . this interface is
implemented by the oracle vendors ,So interface class is
implemented by data base vendors . So these methods are used
to connect data base
Connection con=Drivermanager.getConnection("url
path","username","password");
get connection is static method , So this method is calling
by DriverManager class

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Under what circumstances, that all four drivers are used?

1909


List some new features available in jdbc 4.0?

484


What is the difference between setmaxrows(int) and setfetchsize(int)?

568


List the advantages of using datasource?

559


What is the feature of jdbc v4?

491






Where is jdbc url mysql?

504


What is jdbc in dbms?

504


Can I set up a connection pool with multiple user IDs? The single ID we are forced to use causes problems when debugging the DBMS.

525


How can you retrieve data from the resultset using jdbc?

557


What does connection pooling mean ?

579


Prepared statements are faster. Why?

615


What are the differences between setmaxrows(int) and setfetchsize(int)?

546


What is 2 phase commit?

565


What are four types of JDBC driver?

572


What does the jdbc resultsetmetadata interface?

558