This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JDBC and the fly likes What is the idea behind all classes as  interfaces in JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "What is the idea behind all classes as  interfaces in JDBC" Watch "What is the idea behind all classes as  interfaces in JDBC" New topic
Author

What is the idea behind all classes as interfaces in JDBC

chenna kesava koyyagura
Greenhorn

Joined: Nov 25, 2007
Posts: 3
hi friends,

please let me know what is the idea behind all classes in jdbc are interfaces?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19557
    
  16

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the idea behind all classes as interfaces in JDBC
 
Similar Threads
Calling Interface uder different package.
interfaces
JDBC
JDBC URLs
System.in - abstract type class variable