File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Doubt regarding interfaces in java.sql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Doubt regarding interfaces in java.sql" Watch "Doubt regarding interfaces in java.sql" New topic

Doubt regarding interfaces in java.sql

Raja Siva Ganesh Panuganti

Joined: Jul 18, 2006
Posts: 6
I have a small doubt regarding interfaces in sql package.
consider ResultSet interface or connection interface or any interface in java.sql
the methods in ResultSet are implemented and they are returning some values.
but generally methods in an interface are not having any definitions(must be abstract)
I want to know where and how these methods r given implementation
ResultSet is haaving a method next() which is pointing to the first record in the begining.
So some logic is given for that method next()
I want to know how and where this method next() is given implementation
plzz any body helpppppp?
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

The short answer is they are implemented by the JDBC driver you use. For a more comprehensive answer, have a read of what Ernest has written in this post.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: Doubt regarding interfaces in java.sql
jQuery in Action, 3rd edition