Thursday, August 26, 2010

Java 7 : The New try-with-resources Statement

Java 7 : The New try-with-resources Statement: "From build 105, the compiler and runtime of the Java 7 Releases have
support for the new form of try : try-with-resources, also called ARM
(Automatic Resource Management) blocks.This new statement makes
working with streams and all kind of closeable resources easier. For
example, in Java, you can have this kind of code :


James Sugrue"