Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why is destroy() ??when there is Garbage Collection in java??

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why is destroy used??when there is Garbage Collection in java??
 
raimondas zemaitis
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the purpose of destroy is to allow to release resources, i.e. close open connections etc. when applet is unloaded (if user leaves your site) browser calls stop() and then destroy().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic