Multiple choice

Which of the following methods is/are used by web browser to control the applet?

  1. Wait()

  2. Destroy()

  3. Dead()

  4. Both 1 and 3

  5. Both 1 and 2

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is the correct option because destroy() method is invoked when browser exits normally to inform the applet that is no longer needed and should release any recourses allocated.So this is the correct method. Hence this is correct choice according to the question asked.