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 does the connection object represents?
What is difference between jdbc and odbc?
How do I find whether a parameter exists in the request object?
What is jdbc url for mysql?
What is metadata in programming?
What are the standard isolation levels defined by JDBC?
What is a lock in jdbc?
Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?
Which package contains jdbc api?
How can I manage special characters when I execute an insert query?
How to use JDBC API to call Stored Procedures?
What is correlated subquery?
Why isn't the java.sql.DriverManager class being found?
What is the JDBC?
Why jdbc is used in java?