More cool JDK7 features.

Interesting review of some JDK 7 features:

I think the main one I like is the try-with-resource hack:

private String example() throws IOException {
        try(BufferedReader reader = new BufferedReader(...) {
             return reader.readLine();
        }
    }


%d bloggers like this: