Use the ________ method of a Graphics object to draw the outline of a rectangle.
a) LineRectangle
b) DrawRectangle
c) Rectangle
d) DrawLineRectangle
e) None of the above.
b) DrawRectangle
You might also like to view...
What is displayed on the console when running the following program?
``` public class Test { public static void main(String[] args) { try { p(); System.out.println("After the method call"); } catch (NumberFormatException ex) { System.out.println("NumberFormatException"); } catch (RuntimeException ex) { System.out.println("RuntimeException"); } } public class Test { public static void main(String[] args) { try { p(); System.out.println("After the method call"); } catch (NumberFormatException ex) { System.out.println("NumberFormatException"); } catch (RuntimeException ex) { System.out.println("RuntimeException"); } } ``` a. The program displays NumberFormatException. b. The program displays NumberFormatException followed by After the method call. c. The program displays NumberFormatException followed by RuntimeException. d. The program has a compile error. e. The program displays RuntimeException. Key:a It should be A. The main method invokes the method p. In p,
The method used by a repeater to close down a segment is called ____.
A. partitioning B. formatting C. signing D. scanning