This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the idea behind all classes as interfaces in JDBC  RSS feed

 
chenna kesava koyyagura
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

please let me know what is the idea behind all classes in jdbc are interfaces?
 
Rob Spoor
Sheriff
Posts: 21047
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It allows vendors of database systems to provide their own implementations which are specificly for those systems, yet users can write their code once without having to change much - only the driver class and the connection string.

Sure, some of it could have possibly been put in abstract classes, but it would have been so very little it hardly justifies having an abstract class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!