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 are the different algorithms used for clustering?

548


How are the elements of a borderlayout organized?

592


What is the difference between the session.update() method and the session.lock() method?

554


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

568


What is glasgow?

582






What is in-memory replication?

557


Which class is the immediate superclass of the menucomponent class?

627


What happens when a thread cannot acquire a lock on an object?

537


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

550


What is a policy?

1772


What is a session? Can you share a session object between different theads?

554


What is Remote Server?

1682


Name the eight primitive java types.

593


Why use POJO when I can use hashmap

2045


What is the difference between session and entity beans?

578