---
title: "What is the purpose of finalize() method?"  
description: "What is the purpose of finalize() method?"  
author: "Anonymous User"  
published: 2015-04-28  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2453/what-is-the-purpose-of-finalize-method  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is the purpose of finalize() method?

**finalize()** method is invoked just before the object is garbage collected.It is used to perform cleanup processing

## Answers

### Answer by Anonymous User

**finalize()** method is invoked just before the object is garbage collected.It is used to perform cleanup processing


---

Original Source: https://www.mindstick.com/interview/2453/what-is-the-purpose-of-finalize-method

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
