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
How many types of resultset are there in jdbc?
What is device controller?
What does the jdbc driver interface do?
What is the difference between client and server database cursors?
Why isn't the java.sql.DriverManager class being found?
What is in term of jdbc a datasource?
How to check jdbc driver version in websphere?
Explain the steps in writing a java program using jdbc?
What is setautocommit in jdbc?
What is the benefit of having jdbcrowset implementation? Why do we need a jdbcrowset like wrapper around resultset?
Why prepared statements are faster?
What is the use of jdbc?
What are the differences between statement and preparedstatement interface?
How many types of JDBC Drivers are present and what are they?
What is the JDBC?