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

Answer Posted / kranthikumar.ch

Connection is Interface which cannot be instantiated but
can be referenced.
The DriverManager Class can provide the implementation for
that Connection interface.
Means rather than creating creating an object to
DriverManager Class creating reference to Connection
interface.

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if we don't close the connection in jdbc?

497


What is jndi lookup?

523


Can I get a null resultset?

562


What is while rs next ())?

505


What is ODBC and JDBC? How do you connect the Database?

544






Where is ojdbc14 jar located?

512


Which type of driver provides jdbc access via one or more odbc drivers?

533


What is two-phase commit in the database?

529


How can we store and retrieve images from the database?

520


How do I find whether a parameter exists in the request object?

509


Why did my jdbc code throw a rollback sqlexception?

516


What is correlated subquery?

1755


Is java a database?

514


How can I write to the log used by DriverManager and JDBC drivers?

530


How many jdbc driver types are there?

495