• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Significance of Start() and Stop() methods

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
Can anyone please tell me about the start() and stop() methods when we have init() and destroy()?
Thanks in advance
Indira.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Indira,
Here is an illustration...
Applet first called by browser ---------------- init()
-------------------------------------------- start()
Browser leaves Applet's page ------------------ stop()
Browser returns to Applet's page -------------- start()
Browser leaves Applet's page ------------------ stop()
Browser exits --------------------------------- destroy()
Start() and Stop() are for when the browser enters and exits the page. Init() and Destroy() are constructor and destructor. One major use I have seen for Start() and Stop() are for controlling threads that the applet uses... you don't want multiple threads taking up memory in the background of the browser...
HTH,
-Nate
[This message has been edited by Nathan Pruett (edited March 13, 2001).]
 
Did you miss me? Did you miss this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic