Comment Comment by cpt1138 Since Java 7, try with resources handles this in a much cleaner way than the example.https://docs.oracle.com/javase/tutorial/essential/exceptions... parent cpt1138 6 years ago
https://docs.oracle.com/javase/tutorial/essential/exceptions...