Forums Register Login

jdbc api have interfaces

+Pie Number of slices to send: Send
In jdbc api, most of the things defined are interfaces and not classes. Why most of them are interfaces?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thank you
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 615 times.
Similar Threads
Some issues related with interfaces
JDBC
Where is Connection interface implemented
JDBC implementions
interfaces
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:12:29.