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
How many bits is a double?
Can there be an abstract method without an abstract class?
What is default switch case? Give example.
Explain about the interpreter in java?
What is the finalize method do?
State the significance of public, private, protected class?
Can a constructor be protected?
Explain the private field modifier?
What is static keyword in java?
What is the byte range?
what is thread in Java ?
What are three advantages of using functions?
Which method must be implemented by all threads?
What is the difference between static and non-static variables in java programming?
What is the difference between ArrayList and Vector? which one is better in Java