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
Q1: The fact that class Graphics is abstract
Q2: The Java statement:
G.draw3DRect(290, 100, 90, 55, true);
A)
Q3: Method getFont of class Graphics returns _.
A)
Q5: GeneralPath method lineTo _.
A) draws a line
Q6: Which of the following statements is false?
A)
Q7: The Java statement:
G.fillOval(290, 100, 90, 55);
A) Draws
Q8: Which of the following is correct for
Q9: Which of the following statements about arcs
Q10: The JColorChooser dialog allows colors to be
Q11: In the Java coordinate system, the point
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