Home > DeveloperSection > Interviews > What is shutdown hook?

Posted on    May-07-2015 11:42 PM

 Java Java  Thread 
Ratings:
 1 Answer(s)
  391  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    May-07-2015 11:42 PM

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

Don't want to miss updates? Please click the below button!

Follow MindStick