Java Applet Programming Question:

Download Job Interview Questions and Answers PDF

Why do you Canvas?

Java Applet Interview Question
Java Applet Interview Question

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?