The shutdown hook is basically a thread i.e. invoked implicitly before JVM shuts down. So we can use it perform clean up resource.
Can you answer this question?
Write Answer1 Answers