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 is the difference between setmaxrows(int) and setfetchsize(int)?
What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?
Explain in detail about JDBC and its general features?
What is jdbc odbc bridge?
What is jdbc thin client in oracle?
What is the function of setautocommit?
How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?
What is two-phase commit in the database?
What is jdbc connection class?
What is the different between ResultSet and RowSet?
What does jdbc do?
How can we store the file in the oracle database?
What is jdbc and odbc?
What are the jdbc statements?
What is metadata in programming?