Hitachi

Hitachi Advanced Database Application Development Guide


13.1.1 try-with-resources statement

This statement is a try statement that declares resources. By using a try-with-resources statement, you can ensure that each resource is closed at the end of the statement.

You can use a try-with-resources statement in a Connection interface, ResultSet interface, or Statement interface. For details about how to use this statement, see the related documentation about the JDBC specification.