Connection.close
Interface Overview | Interface Members | This Package | All Packages
Syntax
public abstract void close() throws SQLException
Description
In some cases, it is desirable to immediately release a Connection's database and JDBC resources instead of waiting for them to be automatically released; the close method provides this immediate release.
Note: A Connection is automatically closed when it is garbage collected. Certain fatal errors also result in a closed Connection.
Exceptions
SQLException if a database-access error occurs.