Share via


Object.finalize

Class Overview | Class Members | This Package | All Packages

Syntax

protected void finalize() throws Throwable

Description

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup.

Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored.

The finalize method in Object does nothing.

Exceptions

Throwable [Need description!]