What is the lifecycle of an applet?

Answer Posted / m abhishek

following four methods in an applet's life:
public void init();//called once in an applet's life, when
the applet is first loaded.
public void start();//called at least once in an applet's
life, when the applet is started or restarted.
public void stop();//called at least once in an applet's
life, when the browser leaves the page in which the applet
is embedded.
public void destroy();//called once in an applet's life,just
before the browser unloads the applet.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What if the static modifier is removed from the signature of the main method?

700


How messaging services are done, before release of JMS?

1585


Explain how will the struts know which action class to call when you submit a form?

520


What is abstract schema?

553


How substring() method of string class create memory leaks?

550






What is table mutation and how do you avoid it?

1915


What is the difference between the ‘font’ and ‘fontmetrics’ class?

635


Can I use multiple html form elements with the same name?

578


What is the relation between the infobus and rmi?

556


Why are my checkboxes not being set from on to off?

637


What is colon_pkg_prefixes and what is its use?

1997


What value does read() return when it has reached the end of a file?

549


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1360


What modifiers may be used with an inner class that is a member of an outer class?

572


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1750