What is the lifecycle of an applet?

Answers were Sorted based on User's Feedback



What is the lifecycle of an applet?..

Answer / 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

What is the lifecycle of an applet?..

Answer / janet

All the above and also one more method is the part of
applet life cycle.
i.e Paint() method: can be called when the applet is
minimized or maximized.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

What is a class loader? What are the different class loaders used by jvm?

0 Answers  


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

0 Answers  


What is multithread synchronizing ?

4 Answers   Sun Microsystems,


How primary key is implemented in Oracle?

0 Answers  


Why does the option tag render selected=selected instead of just selected?

0 Answers  






What is DTD?

3 Answers   Wipro,


Difference between sleep and suspend?

3 Answers  


Does Java pass arguments by value or reference?

5 Answers   HeadStrong,


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

0 Answers  


What must a class do to implement an interface?

0 Answers  


What are the different algorithms used for clustering?

0 Answers  


What are the sequence of steps to write pub or sub model kind of application?

0 Answers   TCS,


Categories