4 ms·
Notice that Closable is in the IO namespace. I think the author is saying there is no equivalent to the .Net System.IDisposable, which can be applied to any obj
by callmevlad 14y ago
Notice that Closable is in the IO namespace. I think the author is saying there is no equivalent to the .Net System.IDisposable, which can be applied to any object.
Edit: See http://stackoverflow.com/questions/1165428/should-closeable-be-used-as-the-java-equivalent-for-nets-idisposable http://stackoverflow.com/questions/1165428/should-closeable-...
- paul_odin 14y agoJava 7 adds java.lang.AutoCloseable (together with try-with-resources) which is essentially the same thing. http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html http://docs.oracle.com/javase/7/docs/api/java/lang/AutoClose...