---
title: "What is shutdown hook?"  
description: "What is shutdown hook?"  
author: "Anonymous User"  
published: 2015-05-07  
updated: 2020-09-11  
canonical: https://www.mindstick.com/interview/2496/what-is-shutdown-hook  
category: "java"  
tags: ["java", "thread"]  
reading_time: 1 minute  

---

# What is shutdown hook?

The shutdown hook is basically a thread i.e. invoked implicitly before JVM shuts down. So we can use it perform clean up resource.

## Answers

### Answer by Anonymous User

The shutdown hook is basically a thread i.e. invoked implicitly before JVM shuts down. So we can use it perform clean up resource.


---

Original Source: https://www.mindstick.com/interview/2496/what-is-shutdown-hook

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
