What is shutdown hook?

Last updated:9/11/2020 4:49:56 AM

1 Answers

Mayank Tripathi
Mayank Tripathi

The shutdown hook is basically a thread i.e. invoked implicitly before JVM shuts down. So we can use it perform clean up resource.

Answer