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

How the JDBC application works?

543


Can I get a null resultset?

562


How many types of resultset are there in jdbc?

536


Explain how data flows from view to db and reverse

1644


What are the basic exceptions in jdbc?

542






How can I get information about foreign keys used in a table?

540


What is the major difference between java.util.date and java.sql.date data type?

500


Why jdbc is used in java?

493


Explain different types of locks in jdbc?

527


What are the 4 types of jdbc drivers?

521


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

531


How can I determine the isolation levels supported by my DBMS?

532


What does the jdbc connection interface?

546


What is the jdbc rowset?

554


What is resultset?

580