• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt regarding interfaces in java.sql

 
Raja Siva Ganesh Panuganti
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic