Which of the following describe the sequence of method calls that result in a component being redrawn? a) invoke paint() directly b) invoke update which calls paint() c) invoke repaint() which invokes update(), which in turn invokes paint() d) invoke repaint() which invokes paint directly
Just curious, are we supposed to know about the behavior of update(), paint() and repaint() for the exam? I haven't used any of these methods in my coding practice with AWT.
Have you written any applets? (Although I don't think they're specifically covered on the SCJP..not sure though) But if you've done applets, then painting is something you would have dealt with more, and you would probably need to understand how repaint() works, as well as paint().
Rob
SCJP 1.4
Being a smart alec beats the alternative. This tiny ad knows what I'm talking about:
Gift giving made easy with the permaculture playing cards