Java Applet Interview Questions and Answers
Ques. What is the order of method invocation in an Applet?Ans. ► public void init() : Initialization method called once by browser.► public void start() : Method called after init() and contains code to start processing. If the user leaves the page and returns without killing the current browser session, the start () method is called without being preceded by init (). ► public void stop() : Stops all processing started by start (). Done if user moves off page. ► public void destroy() : Called if current browser session is being terminated. Frees all resources used by applet. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is an applet?
- What is the difference between an Applet and an Application?
- How will you establish the connection between the servlet and an applet?
- What is an Applet? Should applets have constructors?
- How will you initialize an Applet?