Statement.close

Statement.close

Interface Overview | Interface Members | This Package | All Packages

Syntax
public abstract void close() throws SQLException
Description
In many cases, it is desirable to immediately release a Statements's database and JDBC resources instead of waiting for this to happen when it is automatically closed; the close method provides this immediate release.

Note: A Statement is automatically closed when it is garbage collected. When a Statement is closed, its current ResultSet, if one exists, is also closed.

Exceptions
SQLException if a database-access error occurs.