Article: Under The Hood With the JVM’s Automatic Resource Management
The deprecation of Object::finalize is an unusual step for the Java ecosystem. We dive deep into the Hotspot JVM to see how it works. We also compare to RAII and the Java 7, try-with-resources syntax. The article contrasts these very different approaches to automatic resource management, and explains why TWR should be used in place of finalization by application programmers.
By Ben Evans
via InfoQ http://www.infoq.com
May 21, 2017 at 04:06AM