Java7 introduced many features that simplifies coding which are overhead in older Java versions. In this blog we will see the feature called Automatic Resource Management. This is really a good feature in Java7 which close the resources like IO streams automatically. Everything you need to do is implement java.lang.AutoCloseable. try-with-resources Statement try-with-resources statement simply …
Tag: try-with-resource
Permanent link to this article: https://blog.openshell.in/2013/08/java-essential-tips-automatic-resource-management/