This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
Does anybody know what the difference between these to methods is?
ResultSet.close() and Connection.close() ??
I use them interchangebbly, would this have an adverse effect on my app in anayway??
Thanks in advance for your thoughts,
posted 10 years ago
In a properly written JDBC driver, Connection.close() will close any open Statement or ResultSet objects that were opened on that Connection, before closing the connection itself. ResultSet.close() will merely close the ResultSet, leaving open any Statement or Connection above it.