Glossary: Software Design Patterns in Java
Try-with-resources
Also written: try with resources
A Java `try (...)` form that automatically calls `close()` on `AutoCloseable` objects when the block ends. It always opens and closes, while your block varies.