English, asked by mahimareddy4895, 10 months ago

what is the sequence of major events in the life of an applet?

Answers

Answered by sohel02
2
init-start-paint-stop-destroy
Answered by steffis
0

The sequence of major events in the life of an applet is init(), start(), paint(), stop() and destroy().

Explanation:

  • init() method is invoked only once to initialize an applet.
  • start() method is used to start the applet after the init()method is invoked. It is invoked each time when browser loading or refreshing.
  • paint() method is used for painting any shapes like square, rectangle, trapezium, eclipse, etc. It has parameter as ClassGraphics.  
  • stop() method is invoked to stop the applet every time when browser stopped or minimized or abrupt failure of the application.  
  • destroy() method is invoked only once like init() method and is used to destroy the application once we have done with our applet work.
Similar questions