aspose file tools*
The moose likes JDBC 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
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Doubt regarding interfaces in java.sql" Watch "Doubt regarding interfaces in java.sql" New topic
Author

Doubt regarding interfaces in java.sql

Raja Siva Ganesh Panuganti
Greenhorn

Joined: Jul 18, 2006
Posts: 6
hai,
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
ex:
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?
THANKS IN ADVANCE
Paul Sturrock
Bartender

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: http://aspose.com/file-tools
 
subject: Doubt regarding interfaces in java.sql