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 do I set properties for a JDBC driver and where are the properties stored?
What are the new features added to JDBC 4.0?
Is jdbc secure?
What is device controller?
How do I find jdbc version?
Is jdbc a framework?
How to check jdbc connection in linux?
What is jdbc type?
What are different parts of a url?
How can we move the cursor in a scrollable result set?
How do I check in my code whether a maximum limit of database connections have been reached?
What are devices?
What is data source in java?
What is correlated subquery?
How many locking systems are there in jdbc?