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

Answer Posted / .t.v.harish

Connection is an interface from java.sql package, for which
getConnection(_) was return an anonymous inner class object
of the Connection interface.

Note:- Anonymous inner class is a nameless inner class,
which can be sued to provide an implementation either for
the interfaces or for abstract classes.

T.V.HARISH

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of interfaces in the api component?

517


Is oracle client required for jdbc connection?

493


Is it possible to connect to multiple databases simultaneously?

550


What do you mean by database connection pooling?

510


Is odbc an api?

514






What is a lock in jdbc?

539


Is jdbc faster than hibernate?

568


What is drivermanager in jdbc?

538


What is the full form of jdbc and what is its purpose?

540


Why do I have to reaccess the database for Array, Blob, and Clob data?

542


What are four types of JDBC driver?

566


What types of DataSource objects are specified in the Optional Package?

503


How to get the Database server details in java program?

571


What is difference between statement and preparedstatement in jdbc?

465


What is a jdbc url?

461