Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Two Multiple Choice Questions: 1. The fact that class Graphics is abstract contr

ID: 3687266 • Letter: T

Question

Two Multiple Choice Questions:

1. The fact that class Graphics is abstract contributes to Java’s portability because:

A) drawing is performed differently on every platform that supports Java. A subclass of Graphics must be created that uses the drawing capabilities of the current platform.
B) objects of non-abstract classes can only be instantiated on the Windows platform.
C) drawing should not be performed on non-Linux platforms.
D) Class Graphics is not abstract.

2. Which of the following statements about the Graphics object is true?
A. The Graphics object is an argument to class Component’s repaint method.
B. The Graphics object is instantiated by the user.
C. The Graphics object is the argument to a lightweight GUI component's paintComponent method.
D. The Graphics class is abstract.
E. The Graphics object manages a graphics context.

A) A, C, E.
B) C, D, E.
C) A, B, D, E.
D) All are true.

Explanation / Answer

1. A) drawing is performed differently on every platform that supports Java. A subclass of Graphics must be created that uses the drawing capabilities of the current platform.

2.B) C, D, E.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote