• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

stop() method of applet and GC

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when we call stop method of applet then does the objects get gc
or not
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nishesh,
Yes and No. The JVM doesn't not guarentee that garbage collection will ever occur and programmers can't force it to happen!
IMOP, applet gc would be handled by the OS and Browser and would depend on memory conditions ...
Regards,
Manfred.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The purpose of the applet stop method is so your applet can get notified that - for some reason - the browser thinks it should stop. For example, Netscape calls stop if you resize the browser window, then it calls start again.
Your code should never call the Applet start or stop - this is a browser control mechanism.
So - stop is NOT a permanent stop, whether or not you discard objects is up to your code.
Bill

------------------
author of:
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IF applet is stopped and then started again then it starts from the new state or starts from the state where it was stopped?
 
reply
    Bookmark Topic Watch Topic
  • New Topic