Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

destroypApp() Method

 
Danish Shaukat
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Do you think it is a good practice to assign null to all objects (Forms, Lists etc) in the destroyApp() method. What will be the benefits of doing this ?

Danish
[ May 10, 2005: Message edited by: Danish Shaukat ]
 
Nikhilesh Fonseca
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is good to that that in pauseApp() method as startApp() is called after u resume( fi u initilalize things in startApp).In the destroyApp .It derefrences things aneeway whether you do it or not.
Cheers
Nikhilesh
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!