Java Applet Programming Question:
Download Job Interview Questions and Answers PDF
What are the Applets Life Cycle methods? Explain them?
Answer:
methods in the life cycle of an Applet:
► init() method - called when an applet is first loaded. This method is called only once in the entire cycle of an applet. This method usually intialize the variables to be used in the applet.
► start( ) method - called each time an applet is started.
► paint() method - called when the applet is minimized or refreshed. This method is used for drawing different strings, figures, and images on the applet window.
► stop( ) method - called when the browser moves off the applet’s page.
► destroy( ) method - called when the browser is finished with the applet.
► init() method - called when an applet is first loaded. This method is called only once in the entire cycle of an applet. This method usually intialize the variables to be used in the applet.
► start( ) method - called each time an applet is started.
► paint() method - called when the applet is minimized or refreshed. This method is used for drawing different strings, figures, and images on the applet window.
► stop( ) method - called when the browser moves off the applet’s page.
► destroy( ) method - called when the browser is finished with the applet.
Download Java Applet Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the order of method invocation in an Applet? | What is the sequence for calling the methods by AWT for applets? |