Hacker News new | ask | show | jobs
by cpt1138 2346 days ago
Since Java 7, try with resources handles this in a much cleaner way than the example.

https://docs.oracle.com/javase/tutorial/essential/exceptions...