Java Cup
Inside Java

News and views from members of the Java team at Oracle

Why Write an Empty finalize() Method?

Now that JEP 421 (Deprecate Finalization for Removal) has been delivered in JDK 18, it seems like more people are talking about finalization and how to migrate to alternatives such as Cleaner. I had an interesting Twitter conversation about this with Heinz Kabutz the other day …


More at https://stuartmarks.wordpress.com/2022/04/27/why-write-an-empty-finalize-method/.