Multiple Choice
Which of the following properly create and initialize a Font object?
A. Font f = new Font() ;
B. Font f = new Font("Serif", Font.Bold + Font.Italic, 19) ;
C. Font f = new Font(Font.Bold, 20, "SansSerif") ;
D. Font f = new Font(20, Font.Bold, "Monospaced") ;
A) A and B.
B) B and C.
C) B.
D) D.
Correct Answer:

Verified
Correct Answer:
Verified
Q9: Which of the following are valid Java
Q10: Which of the following statements is false?<br>A)
Q11: The JColorChooser dialog allows colors to be
Q12: Class FontMetrics declares methods that can be
Q13: GeneralPath method lineTo _.<br>A) draws a line
Q14: Consider the code segment below:<br> int xValues[]
Q15: The Java statement:<br>G.draw3DRect(290, 100, 90, 55, true);<br>A)
Q16: The Java statement:<br>G.fillOval(290, 100, 90, 55);<br>A) Draws
Q17: The fact that class Graphics is abstract
Q19: The Graphics2D method(s) that determine(s) the color