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
Give an example for getXXX method?
Why isn't the java.sql.DriverManager class being found?
Which interface handles transaction management in jdbc?
What are the main components of JDBC ?
What does adapter class provide?
What is sqlwarning?
What does the jdbc connection interface?
What are the exceptions in jdbc?
How to update a resultset programmatically?
What is SQL Warning? How to retrieve SQL warnings in the JDBC program?
How do I stop nullpointerexception?
Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?
Result set’s index starts with 0 or 1?
What is the reason why we need a jdbcrowset like the wrapper around resultset?
Why we use jdbc instead of odbc?