Java: Life Cycle of An Applet

Saloni Bhinganiya
2 min readApr 12, 2019

by : Saloni Bhinganiya

Java: Life Cycle of An Applet

Definition:

A java is a virtual machine which separates from the web browser itself. a java applet is a small application that is written in the java programming which works at client side

· the process of execution sequence when an application is executed

1. int ()

2. start ()

3. paint ()

· the process of execution sequence when an application is closed

1. stop ()

2. destroy ()

· brief description of life cycle process

1. int (): the life cycle of an applet is voyage begin here In this process the applet object launched by the browser because tjis process is called before all the others method ,programmer can utilize this process to instantiate object ,variable ,setting background .

2. start (): this process is called at least once in an applet life cycle when the applet is started or restarted. its start () immediately after int () process.

3. Stop (): this process stops the execution of the applet. the stop () process executes the applets is minimised or when moving from on tab to another in the browser.

4. Destroyed (): the destroyed () process when the applet window is closed or when the tab containing the bowers is closed .stop() process executes just before when destroyed()process is invoked the destroyed
()process remove the applet object from memory

5. Paint (): the paint () process is used to redraw the output on the applet display area the paint () process execute after the execution of start ()method and whenever the applet is browser is resized

· After knowing the process let us known when they are called by the browser.

1. Int (): this process is called initialized an applet

2. Start (): this process called after initialized of the applet

3. Stop (): this process is called as multiple times in the life cycle of a applet

4. Destroyed (): this process is called only once in the life cycle of applet when the process applet is destroyed.

5. Paint (): this process is called number of times in the execution.

Priority

--

--