Given a Graphics object g, to draw an circle with radius 20 centered at (50, 50), you use __.

Given a Graphics object g, to draw an circle with radius 20 centered at (50, 50), you use __________.


A. g.drawOval(50, 50, 20, 20)
B. g.drawOval(50, 50, 40, 40)
C. g.drawOval(30, 30, 20, 20)
D. g.drawOval(30, 30, 40, 40)

The correct answer is D


Java

Learn More Multiple Choice Question :