Snippets tagged “garbage-collector”
2 snippets use this tag.
- How can I create a memory leak in Java?Java
It is generally not a good idea to intentionally create a memory leak in Java.
- When is the finalize() method called in Java?Java
In Java, the finalize method is called by the garbage collector when it determines that an object is no longer reachable.