void close() throws SQLException
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.
SQLException - if a database access error occurs or the statement has been closed
For more information, reference JDBC documentation for: Statement.close()