Multiple Choice
Which of the following is one way to get a reference to the Graphics object for an AWT component or a class that extends JApplet or JFrame?
A) Override the component's paint method.
B) Create a static instance of the Graphics object.
C) Pass an instance of the Graphics object as an argument to the component's constructor.
D) Create an instance of any class that extends the Graphics2D class.
Correct Answer:

Verified
Correct Answer:
Verified
Q30: If you need to load a sound
Q31: Which of the following statements would you
Q32: An application can use this object to
Q33: If you want to make sure that
Q34: In HTML, the <h1></h1> tag marks a
Q35: These are Java programs that are usually
Q36: An HTML document is usually saved with
Q37: HTML has sophisticated abilities such as performing
Q38: There is no static main method needed
Q39: To run an applet, you create an