Forums Register Login

java.sql.Connection ???

+Pie Number of slices to send: Send
Hi,

Can any one please tell me why java.sql.Connection is a interface ?

And which class implement this Connection interface ?

Thanks & Regards
Bikash
+Pie Number of slices to send: Send
Its vendor specific. So the interface is implemented by a class in your JDBC driver.
+Pie Number of slices to send: Send
And therein lies the complete and blinding beauty of interfaces. Despite the fact that each vendor has a unique class that implements the connection, your program doesn't need to care. Isn't that a wonderful thing?
+Pie Number of slices to send: Send
Hi all,

Lot of thanks for all of your's reply.

Thanks & Regards
Bikash
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1090 times.
Similar Threads
why connection is a interface
[resolved] Newbie JDBC Connection Issue
What are NEW FEATURE in Java Tiger ??
Regarding Connection interface
is it an interface or a class
More...

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