Back to the 2024 paper

Module III: Basics of Web Programming

20242m

Which method is invoked immediately after the start() method and whenever an applet needs to be repainted itself in the browser? (i) init() (ii) stop() (iii) run() (iv) paint()

Worked SolutionAI Assisted

Answer: (iv) paint()

Applet life cycle: init() → start() → paint() → stop() → destroy(). paint(Graphics g) is called right after start() and again whenever the applet must be redrawn (window resized, uncovered, or repaint() called).

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.