What are the Applets Life Cycle methods? Explain them?
Submitted by: Administratormethods 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.
Submitted by: Administrator
► 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.
Submitted by: Administrator
Read Online Java Applet Job Interview Questions And Answers
Top Java Applet Questions
☺ | What is the order of method invocation in an Applet? |
☺ | Which method is used to output a string to an applet? Which function is this method included in? |
☺ | When is update method called? |
☺ | What is an Applet? Should applets have constructors? |
☺ | What tags are mandatory when creating HTML to display an applet? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |