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
Q25: Which of the following packages includes classes
Q26: Which of the following will yield a
Q27: The String class's compareTo method
A) compares two
Q28: In the StringMutation program shown in Listing
Q29: Which statement is true, given the following
Q31: The advantages of the DecimalFormat class compared
Q32: Write a declaration for a Rectangle named
Q33: Given the following two lines of code,
Q34: In a development environment that fully supports
Q35: Assume you write a program that uses
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents