Multiple Choice
Given Graphics object graph, which statement can you use to change the pen color to red?
A) graph.setColor(Color.red) ;
B) graph.setPen(Color.red) ;
C) setForeground(red) ;
D) graph.getRed() ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q12: The class JComponent is part of the
Q13: What class can be used to generate
Q14: You can create an applet by extending
Q15: You can create instances of Color by
Q16: What HTML tags begin and end a
Q18: Like Java application programs, Java applets have
Q19: You can use the methods Background and
Q20: In which of the following layout managers
Q21: The class Container is the superclass of
Q22: The class Graphics is an abstract class.