| Author |
jdbc api have interfaces
|
varma kothapalli
Greenhorn
Joined: Jan 12, 2005
Posts: 2
|
|
|
In jdbc api, most of the things defined are interfaces and not classes. Why most of them are interfaces?
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
Varma, Welcome to JavaRanch! JDBC uses interfaces because it only provides a contract for the classes. The actually implementation is provided by the JDBC driver. For example, if you use Oracle, you have a driver in the classes12.zip file. This file contains all of Oracle's custom classes that implement the JDBC interfaces.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
varma kothapalli
Greenhorn
Joined: Jan 12, 2005
Posts: 2
|
|
|
Thank you
|
 |
 |
|
|
subject: jdbc api have interfaces
|
|
|