Multiple choice

Which of the following methods in Java is used in applet programming to draw the graphics of the applet in the drawing area?

  1. update()

  2. paint()

  3. repaint()

  4. none of these

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

The paint() method in Java is used in applet programming to draw the graphics of the applet in the drawing area.