We don't immediately know and should not need to know the implementing Class for the interface. The Driver for the Database manages that for us and returns something that behaves like a ResultSet. We treat it like a ResultSet, and regardless of what exists behind the Interface should behave correctly.
You can always find the class using rs.getClass().getName() if you really need to know.
radhika S
Greenhorn
Joined: Sep 09, 2007
Posts: 2
posted
0
Thankyou
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
posted
0
When you do that ... Looking at the class name, do you think it will be the same for Oracle, UDB, MySQL and every other database?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi