Resource handling 4 - Java and PythonRichard Mawhttp://yakking.branchable.com/posts/resource-handling-4-java-python/yakkingikiwiki2014-11-12T14:48:01Ztry-with-resources new from Java 7 onhttp://yakking.branchable.com/posts/resource-handling-4-java-python/comment_1_fb03f7e60b99f834b06329f8fbd03bc6/www.cloudid.de/?user=a47602f3eec8afceacef3dd015129173fa461fb12014-11-12T14:48:01Z2014-11-12T14:48:01Z
<p>Java 7 supports try-with-resources which allows automatic closing of resources (e.g. streams) that implement AutoCloseable. The resources are local to the try-block.</p>
<p>There's a tutorial by Oracle at https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html for anyone interested.</p>