TheServerSide has been digging into the new Java 7 features, and trying to provide some thorough and informative tutorials on how the various language enhancements introduced in Java 7 work. In this tutorial we expand on our initial look at the new try-with-resources syntax.

Automatic Resource Management (ARM) and the AutoCloseable Interface Tutorial

Other tutorials in this series have looked at other Java 7 features. For a solid indoctrination into what's new, check out these previously published articles as well:

New Java 7 Features: Binary Notation and Literal Variable Initialization Tutorial
New Java 7 Features: Numeric Underscores with Literals Tutorial
New Java 7 Features: Using String in the Switch Statement Tutorial
New Java 7 Features: The Try-with-resources Language Enhancement Tutorial