I need to know when the finalize()
method is called in the JVM
. I created a test class which writes into a file when the finalize()
method is called by overriding it. It is not executed. Can anybody tell me the reason why it is not executing?
I need to know when the finalize()
method is called in the JVM
. I created a test class which writes into a file when the finalize()
method is called by overriding it. It is not executed. Can anybody tell me the reason why it is not executing?