Abstract Window Toolkit (AWT) Question:

Download Job Interview Questions and Answers PDF

How the Canvas class and the Graphics class are related?

AWT Interview Question
AWT Interview Question

Answer:

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

Download AWT Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between a MenuItem and a CheckboxMenuItem?What is the relationship between clipping and repainting?