method finalize and exceptions

后端 未结 3 692
梦谈多话
梦谈多话 2021-01-22 09:56

I don\'t understand very well when an exception is ignored by the GC when it reclaims from the memory an object.

If I have a try/catch into a finalize metho

3条回答
  •  野的像风
    2021-01-22 10:24

    It means that any exception thrown from the finalize method is ignored. However, exceptions inside it still work as usual.

提交回复
热议问题