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
Why should we close database connections in java?
java based application for hospital management
How can you make a connection?
What is 2 phase commit?
What is in term of jdbc a datasource?
What is jdbc dialect?
Explain creation of statement object with connection method create method with help of an example.
What is the use of setFetchSize() and setMaxRows() methods in Statement?
What is sqlwarning?
What are the types of jdbc drivers that exist?
What is the role of jdbc drivermanager class?
How does jdbc work?
What is a jdbc url?
What is metadata in java programming?
How many packages are available in jdbc api?