Which of the following statements are true?
A. Each GUI component contains a Graphics object that can be obtained using getGraphics() method.
B. Once a GUI component is visible, getGraphics() returns the object.
C. If a GUI component is not visible, getGraphics() returns null.
D. The Graphics object is automatically created for each visible GUI component.
The correct answer is ABCD