Multiple choice

What are the Applet's life cycle methods?

  1. init(), start() and destroy()

  2. init(), start() and paint()

  3. init(), start(), paint(). stop() and destroy()

  4. init(), start() and stop()

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

The applet lifecycle has four main methods: init() (called once when loaded), start() (called to begin execution), stop() (called when the applet should pause), and destroy() (called when the applet is being removed). The paint() method is for graphics, not a lifecycle method. Option D correctly lists the three core lifecycle methods.