Life Cycle of Applet

No comments
Life Cycle of Applet:-

An applet has the following life cycle. The following order in maintained for the applet to work properly

init: - The init ( ) method is called exactly once, when the applet is first loaded. It's normally used to initialize some parameters, which needs only on-z time initialization during the execution time of the applet.

start: - The start() method is called at least once, when the applet is started or restarted. In some cases it may be called more than once. A start() method is often used to start any threads the applet will need while it runs.

stop: - The stop() method is called at least once, when the browser window is stopped loading in which the applet is embedded. The applet's start() method will be called if at
some later point the browser returns to the page containing the applet. In some cases the stop() method may be called multiple times in an applet's life cycle. An applet should use the stop() method to pause any running threads.

destroy: - The destroy() method is called exactly once in an applet's life, just before the browser unloads the applet. This method is generally used to perform clean up of resources held by the applet.



applet life cycle,applet,life cycle of applet,life cycle of applet in java,java applet,lifecycle of java applet,life cycle of an applet,life cycle of applet in java in hindi,life cycle applet
Fig- Life Cycle Of Applet

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀