Hazim Hazim - 24 days ago 7
Java Question

Java Finalize method call when close the application

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?

EJP EJP
Answer

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.