Java finalize() method

Java finalize() method: if overridding finalize() it is good programming practice to use a try-catch-finally statement and to always call super.finalize(). This is a saftey measure to ensure you do not inadvertently miss closing a resource used by the objects calling class

One thought on “Java finalize() method”

Leave a Reply

Your email address will not be published. Required fields are marked *