Difference between canvas class & graphics class?
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 |
Why do we use return statement?
What is constructor in java ?
Is it possible to create object with out its default constructor? if possible how? else not possible? justify
why java does not have operator overloading?
What is java class writing rules?
Hi Friends, Can u give few interview questions which relates ArrayList and Hashmap. I mean how to link ArrayList and HashMap.I know this is not good way of asking questions like this , but i need
What is JFC?
What are extraneous variables examples?
Explain scope or life time of local variables in java?
What is the difference between a synchronized method and a synchronized block?
What is difference between module and function?
Can you have a constructor in abstract class?