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 is an odbc driver?

668


Where can I find info, frameworks and example source for writing a JDBC driver?

685


What is jdbc class forname?

676


What is jdbc odbc bridge?

676


How do I stop nullpointerexception?

676


When do we use execute method in java jdbc?

696


What is jdbc and its advantages?

695


Explain the steps in writing a java program using jdbc?

644


What are collection pools?

684


What is jdbc explain?

662


What is jdbc? Describe the steps needed to execute a sql query using jdbc.

661


How to know howmuch data is truncated?

2079


Give steps to connect to the db using jdbc?

766


What are the components of jdbc?

741


How the JDBC application works?

690