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 types of jdbc drivers?
What are the jdbc api components?
Explain about DSN?
How MS-Access DB can be accessed over a network, using JDBC API?
What are the differences between stored procedure and functions?
How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?
What is the full form of jdbc?
What is jdbc servlet?
What is JDBC API and when do we use it?
What is jdbc in java?
How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?
What are the advantages of database connection pooling?
What are devices?
What are the different types of statements in jdbc?
Why resultset is used in java?