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


Please Help Members By Posting Answers For Below Questions

Give an example for getXXX method?

553


Why isn't the java.sql.DriverManager class being found?

562


Which interface handles transaction management in jdbc?

564


What are the main components of JDBC ?

570


What does adapter class provide?

523






What is sqlwarning?

547


What does the jdbc connection interface?

534


What are the exceptions in jdbc?

496


How to update a resultset programmatically?

589


What is SQL Warning? How to retrieve SQL warnings in the JDBC program?

542


How do I stop nullpointerexception?

506


Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?

482


Result set’s index starts with 0 or 1?

551


What is the reason why we need a jdbcrowset like the wrapper around resultset?

537


Why we use jdbc instead of odbc?

494