What is the difference between the paint() and repaint() methods? Ans. 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 the Study24x7 App, so you can connect and collaborate.