title: Difference between paint() and repaint()
body: <p>I am a novice Java programmer and I'm finding quite some difficulty in figuring out the actual difference between the functioning of the <code>paint()</code> and <code>repaint()</code> method.<br>
  Also in some of the programs that I studied I found <code>paint()</code> and <code>repaint()</code> interchangeable.
  Can someone please explain the difference? Thank you </p>