Answer Posted / mallareddy.pindi
The Canvas class is a base class for writing applications
that need to handle low-level events and to issue graphics
calls for drawing to the display. Game applications will
likely make heavy use of the Canvas class. From an
application development perspective, the Canvas class is
interchangeable with standard Screen classes, so an
application may mix and match Canvas with high-level screens
as needed. For example, a List screen may be used to select
the track for a racing game, and a Canvas subclass would
implement the actual game.
The Graphics class provides the framework for all graphics
operations within the AWT. It plays two different, but
related, roles. First, it is the graphics context. The
graphics context is information that will affect drawing
operations. This includes the background and foreground
colors, the font, and the location and dimensions of the
clipping rectangle
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What is singleton class and how can we make a class singleton?
What are methods?
What is a jagged array in java?
What are the advantages and disadvantages of object cloning?
What is static data type in java?
How many boolean functions are there?
What is the maximum size of hashmap in java?
What does yield method of the thread class do?
How can you generate random numbers in java?
Does java vector allow null?
What are thread groups?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
Can we extend immutable class?
What is starvation?
What is variable explain with example?