Java之创建对象>7.Avoid finalizers

1.Finalizers are unpredictable, often dangerous, and generally unnecessary.

2.never do anything time-critical in a finalizer.

3.never depend on a finalizer to update critical persistent state

4.there is a severe performance penalty for using finalizers.

原文地址:https://www.cnblogs.com/frankyou/p/6923803.html