<H1>Concurrency</H1>
<I>What wrong with this Code?</I>

public class Sample
{            
  private static boolean done;
  
  public static void main(String[] args) throws Exception
  {
      new Thread(
              new Runnable()
              {
                  public void run()
                  {
  	                  int i = 0;
                      while(!done)
                      {
  	                    i++;
                      }
  
                      System.out.println("Done!");
                  }
              }
      ).start();
  
      Thread.sleep(2000);
      done = true;
  }
}