I have no source, but I believe (if I remember correctly, it has been a while since I touched JDBC), it depends on the implementation of the JDBC driver. You should always close your connections and clean up after yourself, as not all JDBC drivers do this for you (although some may).
This goes back to the rule that I like - if I create or open something, I am responsible for deleting or closing it.
source
share