title: Need sample program to throw InterruptedException
body: <p>I am going through the <strong>kathy sierra SCJP 1.5 Chapter 9(threads)</strong> and there it is mentioned as:</p>
  
  <blockquote>
    <p>Notice that the sleep() method can throw a checked InterruptedException
    (you'll usually know if that is a possibility, since another thread has to explicitly do
    the interrupting), so you must acknowledge the exception with a handle or declare</p>
  </blockquote>
  
  <p>I just need a sample program to know when it happens (which i can run on my machine)?</p>
  
  <p>I googled but could not find any sample code to test this functionality..</p>
  
  <p>Thanks in Advance</p>