Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Boost this thread!