Multiple Choice
What does the following code fragment do? Circle circle = new Circle(100, 100, 50) ;
Circle.setFill(Color.GREEN) ;
Rectangle rectangle = new Rectangle(70, 70, 225, 75) ;
Rectangle.setStroke(Color.BLUE) ;
Rectangle.setStrokeWidth(2) ;
Rectangle.setFill(null) ;
A) It creates a green circle, centered at coordinates (100, 100) .
B) It creates a rectangle which overlaps the circle since its upper-left corner is at coordinates (70, 70) and its dimensions are 225 X 75.
C) Since the rectangle's fill color is set to null, the circle will be visible through the rectangle.
D) The rectangle will have a blue border.
E) All of these are true.
Correct Answer:

Verified
Correct Answer:
Verified
Q27: In Java a variable may contain<br>A) a
Q28: Assume you write a program that uses
Q29: The following statement will display the value
Q30: All the methods in the Math class
Q31: Which of the following packages includes classes
Q33: You may apply the prefix and postfix
Q34: You may use the String.replace() method to
Q35: Problem Ch 03-1<br>Assume an interactive Java program
Q36: Consider the condition (x == y). How
Q37: What is a wrapper class? Why are