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

How can you make the connection using jdbc?

561


What is jdbc class forname?

489


What port does jdbc use?

493


What is layer in communication?

460


Give steps to connect to the db using jdbc?

586






What is jdbc connection class?

468


Explain the locking system in jdbc & its types?

502


Which jdbc driver is the fastest driver?

549


What does jdbc do?

525


What is connection commit?

496


Is jdbc open source?

451


What are the steps to connect to the database in java?

520


How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?

592


Explain the JDBC Architecture?

563


How can you make a connection?

531