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 |
I was asked to draw the class diagram for the below scenario which should obey OOPS concept. A Portal is to be developed for a school , which has 3 main divisions viz , Education , Admin & Trust. Each division has 2 sub divisions Kinder Garden & Higer Secondary.
What is the purpose of having the concept of overloading?
How can we create objects if we make the constructor private ?
how can you take care of mutual exclusion using java threads? : Java thread
What does percent mean in java?
Explain java code for recursive solution's base case?
What is the static method?
What is the difference between an if statement and a switch statement?
Difference between string s= new string (); and string s = "abv";?
What does indexof return in java?
How do we access static members in java?
difference throws and throw in java