• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MingQ mock exam ques 56 about paint()

 
Judy YU
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can choice a and b also cause the component redrawn, although choice c is more elegant and useful?
56. 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
Answer of the test : c
 
madhuri vl
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, b is also correct but as they asked the sequence of methods
most accurate answer might be c.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic