See Also: IAutoCloseable Members
Defines an interface for classes that can (or need to) be closed once they are not used any longer. Calling the close method releases resources that the object holds.
A common pattern for using an AutoCloseable resource:
java Example
Closable foo = new Foo(); try { ...; finally { foo.close(); } }