Snippets tagged “finalize”
2 snippets use this tag.
- Is there a destructor for Java?Java
Java does not have a destructor like some other programming languages.
- 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.