Abstract Window Toolkit (AWT) Question:

What is the difference between the paint() and repaint() methods?

Tweet Share WhatsApp

Answer:

The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.

Download AWT PDF Read All 41 AWT Questions
Previous QuestionNext Question
What is Canvas?What is the relationship between an event-listener interface and an event-adapter class?