Full threadcpt1138·Since Java 7, try with resources handles this in a much cleaner way than the example.https://docs.oracle.com/javase/tutorial/essential/exceptions...View on HN