Should Closeable be used as the Java equivalent for .NET’s IDisposable?

I’m sure most people are aware of it, but since this question is still among the top results when searching for “IDisposable Java” (#2 result for me just now), and it’s still not mentioned here…

Things have changed with Java 7: there now is AutoCloseable. Which isn’t tied to streams and supported by the new try-with-resources construct.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)