DEVFYI - Developer Resource - FYI

What is the relationship between the Canvas class and the Graphics class?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

240. What is the relationship between the Canvas class and the Graphics class?

A Canvas object provides access to a Graphics object via its paint() method.

(Continued on next question...)

Other Interview Questions