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

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.