Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Difference between canvas class & graphics class?



Difference between canvas class & graphics class?..

Answer / 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

More Core Java Interview Questions

Which one will take more memory: an int or integer?

0 Answers  


Difference between JVM and JRE?

3 Answers   Amdocs,


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

0 Answers  


What’s the difference between applets and standalone program?

0 Answers  


How to perform binary search in java?

0 Answers  


What is an immutable class?

0 Answers  


Difference between Interface & Abstract class?

5 Answers  


What is difference between static variable and global variable?

0 Answers  


Do I need java for windows 10?

0 Answers  


how many ways to create Thread and which one is good? runnable interface ot Thread class?

3 Answers   Satyam,


Can constructor be synchronized?

0 Answers  


Why charat is used in java?

0 Answers  


Categories