Java Applet Programming Question:

Download Job Interview Questions and Answers PDF

When is update method called?

Java Applet Interview Question
Java Applet Interview Question

Answer:

Whenever a screen needs redrawing (e.g., upon creation, resizing, validating) the update method is called. By default, the update method clears the screen and then calls the paint method, which normally contains all the drawing code.

Download Java Applet Interview Questions And Answers PDF

Previous QuestionNext Question
Which method is used to output a string to an applet? Which function is this method included in?How will you communicate between two Applets?