1 what package does the graphics class belong to a graphics b java awt c swing d app 5346751

1. What package does the graphics class belong to?

A. Graphics

B. Java.awt

C. Swing

D. Applet

5. Look at the following code: Color c = Color .Blue;

What is Blue?

A. A static field of the class Color

B. An instance variable of the class Color.

C. A static method of the class Color.

D. An instance method of the class Color.

7. What do arguments 10, 20 represent in the following statement?

g.drawRect( 10, 20, 100, 200 );

A. The (x, y) coordinate of the upper-left corner of the rectangle we are drawing.

B. The width and height of the rectangle we are drawing.

C. The (x, y) coordinate of the center of the rectangle we are drawing.

D. The (x, y) coordinate of the lower-right corner of the rectangle we are drawing.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now