Hi, The question comes from John Hunt Mock Exam (#45)
In order to cause the paint(Graphics) method to execute, which of the following is the most appropriate method to call:
A) paint()
B) repaint()
C) paint(Graphics)
D) update(Graphics)
E) None �
you should never cause paint(Graphics) to execute
Select the most appropriate answer.
The given answer is B. but I think the D update() is more appropriate, update calls paint() directly and repaint calls update. Could someone input some thought on this?
thanks,
Nito