Wednesday, October 22, 2014

Java AutoCloseable Interface Example

In this tutorial we will discuss about the AutoCloseable interface in Java. This interface represents an object that holds its resources until it is closed. Examples of such resources are a file handler and a socket handler. The close() method of an Object that implements the AutoCloseable interface is called automatically, when exiting a try-with-resources […]






from Java Code Geeks http://examples.javacodegeeks.com/core-java/java-autocloseable-interface-example/

No comments:

Post a Comment