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 scalable, portability in the view of J2EE?

0 Answers  


How many JSP scripting elements and what are they?

4 Answers   TCS,


What are the types of scaling?

0 Answers  


Is multiple try block is possible in single java Application......

3 Answers  


What is the difference between Super and This Keyword?

4 Answers   HCL, TCS,






What are the call back methods in entity bean?

0 Answers  


Explain the difference between object state and behavior?

0 Answers  


What is in-memory replication?

0 Answers  


1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession

1 Answers  


Do we need to override service() method

0 Answers  


hi, All are saying that now software field position is not good and in 5-10yrs total software field ll be saturated . is it true? i am unable decide ii continue in this field or not please tell me?

19 Answers  


what is diff between Access modifier and specifier?

5 Answers   L&T,


Categories