Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javacaps mock 2 Q:28

 
Haining Mu
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Answer: AD
Why D is correct? I didn't see any book or API describe about Canvas.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really? Did you try the Sun site?

http://java.sun.com/j2se/1.3/docs/api/java/awt/Canvas.html
 
Haining Mu
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Thomas Paul:
Really? Did you try the Sun site?
http://java.sun.com/j2se/1.3/docs/api/java/awt/Canvas.html

well, I did look at those place and also tried some code. I thought the DEFAULT of Canvas is a blank rect. area which has the same color as its container.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic