This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
vitthal wable
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why java.sql package contain most interface like Statement,preparedStatement,ResultSet?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic