How to create Connection interface object because it is
Interface , Interface is not instansiated?

Answer Posted / venkateswararao

connection interface is provided by the java , i.e they only
gives the interface but not implemented . this interface is
implemented by the oracle vendors ,So interface class is
implemented by data base vendors . So these methods are used
to connect data base
Connection con=Drivermanager.getConnection("url
path","username","password");
get connection is static method , So this method is calling
by DriverManager class

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the factors that the jdbc driver performance depends upon?

716


What port does jdbc use?

711


How many ways that we can view a result set?

768


What is isolation level? How to set it?

1877


How to check jdbc driver version in websphere?

762


Why did my jdbc code throw a rollback sqlexception?

668


What are the components of jdbc?

753


password, is stored in as plain text. What can I do to protect my passwords?

694


Name the types of jdbc drivers.

703


How do I check in my code whether a maximum limit of database connections have been reached?

786


Expalin the method of calling a stored procedure from jdbc.

735


How can I connect mysql or oracle with java?

712


What is the full form of jdbc?

699


What is jdbc stand for?

694


Why is jdbc needed?

684