Learn Java Tutorial for Beginners, Part 40: Java 7 Try With Resources

2 years ago
12

A tutorial on a Java 7 language feature that can help simplify code quite a bit; the "try with resources" construct. We'll take a look at an example here in which it actually lets us avoid the horror of nested try-catch blocks, and that certainly can't be bad.

Loading comments...