The method __________ sets the foreground color to yellow in JFrame f.
A. setForeground(Color.yellow)
B. f.setForeground(Color.YELLOW)
C. f.setForeground(Color.yellow)
D. setForeground(Color.YELLOW)
E. f.setForeGround(Color.yellow)
The correct answer is BC
Explanation: Since JDK 1.4, you can use either Color.YELLOW or Color.yellow to specify a standard color. Prior to JDK 1.4, you can only use the lowercase color name.