Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding removeShutdownHook and addShutdownHook

 
santhosh kumar vk
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could you please tell me what the use of Runtime.getRuntime().removeShutdownHook() and Runtime.getRuntime().addShutdownHook().

Thanks,
Santhosh Kumar VK
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadoc entry for addShutdownHook is actually quite detailed: java.lang.Runtime#addShutdownHook(java.lang.Thread).

I'd suggest to read that first and then ask specific questions, if needed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic