How to create Connection interface object because it is
Interface , Interface is not instansiated?
Answer Posted / mohd gousuddin
Connection is an interface which can not be instantiated but
can be referenced. The DriverManager Class is a Factory
class which contains a factory method called
getConnection(). this method creates and returns connection
object, that object can be assigned to Connection interface
referance variable.
| Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
What are the exceptions in jdbc?
How many types of jdbc drivers are there?
Prepared statements are faster. Why?
What is ojdbc14 jar?
What is the role of the jdbc drivermanager class?
Is jpa faster than jdbc?
What is the use of dialect?
Is odbc an api?
How to set NULL values in JDBC PreparedStatement?
Does sql allow null values ? Can we use it within where clause ?
RowSetInternal caller and returns void. What can I do in the readData method?
What does connection pooling mean ?
Which type of driver is unique in jdbc?
How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?
What is @entity in java?