close()

Syntax:

void close()
           throws SQLException

Description:

Releases this Statement object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed. It is generally good practice to release resources as soon as you are finished with them to avoid tying up database resources.

Calling the method close on a Statement object that is already closed has no effect.

Throws:

SQLException - if a database access error occurs or the statement has been closed

Reference:

For more information, reference JDBC documentation for: Statement.close()