Yes, they should implement `java.lang.AutoCloseable` or `java.io.Closeable` which is equivalent to `System.IDisposable`. The java compiler complies with "The resource type XXX does not implement java.lang.AutoCloseable" message.