Java Applet Programming Question:
Download Questions PDF

Why do you Canvas?

Answer:

The Canvas class of java.awt is used to provide custom drawing and event handling. It provides a general GUI component for drawing images and text on the screen. It does not support any drawing methods of its own, but provides access to a Graphics object through its paint() method. The paint() method is invoked upon the creation and update of a canvas so that the Graphics object associated with a Canvas object can be updated.

Download Java Applet Interview Questions And Answers PDF

Previous QuestionNext Question
What is Difference between AWT and Swing?What type of sound file formats can I use for the applets?