Hi all
This is the question from jaworski mock
test. The answer given is D, But I think The answer if C, because the forgroud color is to render the text only.
Am i right..or do anybody wants to make some correction?
Given that the variable g references a valid Graphics
object, what does the following statement do?
g.fillRect(2, 3, 10, 20);
A. draw the outline of a rectangle in the current background
color
B. draw the outline of a rectangle in the current foreground
color
C. fill in a rectangle using the current background color
D. fill in a rectangle using the current foreground color
E. fill in a rectangle in black