The JVM automatically reclaims memory used by objects that are no longer reachable. You can make objects unreachable (set references to null, let them go out of scope) but cannot force collection.
Loading subject content…
Loading subject content…
Loading practice questions…
The JVM automatically reclaims memory used by objects that are no longer reachable. You can make objects unreachable (set references to null, let them go out of scope) but cannot force collection.