The fillArc() method is used to draw a filled arc. It belongs to the Graphics class. The syntax of this method is as follows:
The arc is bounded by a rectangle whose upper-left corner is defined by top and left, and whose sides are defined by width and height. The arc is drawn from a start angle value through an angular distance defined by the sweepAngle. Angles are defined in degrees. Zero degrees is marked on the horizontal, at the 3 o’clock position. The arc is drawn counterclockwise if the sweepAngle is positive, and clockwise if the sweepAngle is negative.
Click here to get free scja SCJA exam practice questions. Download free practice test for SUN SCJA exam.