Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Garbage Collection /finalize()  RSS feed

 
Karim Walji
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it true that finalization can be forced by using System.runFinalization()
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
when garbage collector is exclusively called by using system.gc()
it is recommended that u use System.runFinalize().this ensures that before garbage collection ,the finalization takes place.
 
Karim Walji
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!