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

Is there another way of dealing with the result set that could execute faster?

516


What is connection commit?

496


What is the return type of execute, executequery and executeupdate?

648


How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?

617


What are common JDBC Exceptions?

544






What is in terms of jdbc a datasource?

515


Expalin the method of calling a stored procedure from jdbc.

541


The new features of the JDBC 2.0 API, will be supported for JDBC-ODBC Bridge?

1664


How java can be connected to a database?

564


Differentiate between type_scroll_insensitive and type_scroll_sensitive.

519


What is a lock in jdbc?

541


What is a rollback in jdbc?

520


What is the use of setFetchSize() and setMaxRows() methods in Statement?

517


How many locking systems are there in jdbc?

554


How to make updates to updatable result sets in jdbc?

488