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

Why do we use jdbc statements?

696


Why do I get UnsatisfiedLinkError when I try to use my JDBC driver?

781


What are the different types of resultset?

719


What is com mysql jdbc driver?

693


Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

876


What is jdbc and jdbc drivers?

668


What is JDBC PreparedStatement?

696


What is the benefit of having jdbcrowset implementation?

712


Explain some new features available in jdbc 4.0?

773


Does sql allow null values ?

726


What is difference between statement and preparedstatement in jdbc?

662


What are the measures to connect to the db using jdbc?

657


List the advantages of using datasource?

754


How can we disable a constraint ?

758


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

747