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.

 

相关文章:

  • 2022-02-19
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-09
  • 2021-08-25
  • 2021-12-23
  • 2021-06-12
相关资源
相似解决方案