Chapter 5: Prepare for Things Going Wrong ← Always Close Resources Explain Empty Catch →

Always Close Multiple Resources

Cover of the book Java by Comparison

"Always Close Multiple Resources" is one of the 70 comparisons in the book Java by Comparison: Chapter 5: Prepare for Things Going Wrong, pages 88–89.

Like every item in the book, it shows a piece of flawed Java code on one page and the improved version on the next, and explains why the improvement is better.

E-book & print at Pragmatic Bookshelf · Amazon