Hacker News new | past | comments | ask | show | jobs | submit login

Since Java 7, try with resources handles this in a much cleaner way than the example.

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: