Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes why java.sql package contain most interface like Statement,preparedStatement ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "why java.sql package contain most interface like Statement,preparedStatement ?" Watch "why java.sql package contain most interface like Statement,preparedStatement ?" New topic
Author

why java.sql package contain most interface like Statement,preparedStatement ?

vitthal wable
Greenhorn

Joined: Sep 09, 2006
Posts: 16
why java.sql package contain most interface like Statement,preparedStatement,ResultSet?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

All these interfaces are implemented in a database specific way by the JDBC driver you use. So you can code to the interface, but change the implementation at runtime.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: why java.sql package contain most interface like Statement,preparedStatement ?
 
Similar Threads
why Statment interface is not Deprecated.??
Why Statemet interface is not Deprecated ?
JDBC basics
JDBC basics
Problem loading the class