Hi Vergil!

Thanks for the message! I really appreciate that!

Yes, you’re right! We should always use try-with-resources (Java 7 feature) to do exception handling in stretches with resource management.

However, in the examples I gave in this article, I couldn’t see a situation where I use resources that I need to open/close and the use of finally.

Could you explain to me what specific section are you talking about?

Once again, thank you!

Written by

Senior Software Developer/Tech Lead, master in Computer Science/Software Engineering, Java, open source, and software quality enthusiast.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store