Java Graphics  «Prev  Next»

AWT and Java graphics - Quiz

Each question is worth one point. Select the best answer for each question.
 

1. What AWT class forms the basis of Java graphics?
Please select the best answer.
  A. Color
  B. Graphics
  C. Paint

2. Which method from the Graphics class could you use to draw a square?
Please select the best answer.
  A. Use the drawRect() method.
  B. Use the drawSquare() method.
  C. Create a Square object.


Your score is 0.0