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 return type of execute, executequery and executeupdate?
What is the benefit of having jdbcrowset implementation? Why do we need a jdbcrowset like wrapper around resultset?
Prepared statements are faster. Why?
What is the meaning of batch updates?
What is jdbc stand for?
How to check jdbc connection in java?
What is jdbc architecture in java?
How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?
Write an sql to find all records having all upper case alphanumeric characters in a field ?
Explain the two tier and three tier architecture of jdbc.
What is difference between java.util.Date and java.sql.Date?
What port does jdbc use?
What is odbc. how is it related to sql cli?
What is jdbc driver in java?
List the advantages of using datasource?