Java / Garbage collection
How to improve the possibility of JVM running of finalize method?
Call System.runFinalization() or Runtime.getRuntime().runFinalization() method.
Though not guaranteed, these methods increase possibility that JVM call finalize() method of all object which are eligible for garbage collection and whose finalize has not yet called.
More Related questions...