New Java7 feature: try-with-resources 9. March 2012 by Andreas This article explains how to use the try-with-resources feature introduced in Java 7: Try-with-resources