Asked by

Maham Sundas
on Oct 27, 2024

verifed

Verified

If graph holds a Graphics object, which of the following puts "CAT" starting at X = 20, Y = 50?

A) drawString("CAT", 20, 50) ;
B) graph.drawString(20, 50, "CAT") ;
C) graph.println("CAT") ;
D) graph.drawString("CAT", 20, 50) ;

Graphics Object

A visual entity in programming that can represent shapes, images, or text on a display device.

drawString

A method used in graphical user interfaces to render text on a screen or canvas at a specified location.

  • Apply Graphics class methods to draw strings and shapes.
verifed

Verified Answer

SB
Shayne BuckinghamOct 28, 2024
Final Answer:
Get Full Answer