I have question regarding the finalize method. If I have many classes with many inheritances, how can I call all finalize methods when the application closing?
System.runFinalizersOnExit(true), but note that it's deprecated. If you're relying on this sort of thing you're already doing something wrong basically.
System.runFinalizersOnExit(true)
1.4m articles
1.4m replys
5 comments
57.0k users