title: How bad is new Thread().sleep compared to Thread.sleep in terms of CPU and memory utilization?
body: <p>I'm aware that sleep should be accessed in a static context. However I need more inputs so I can defend this to the management. Most of the legacy code that I'm handling now uses new Thread().sleep instead of Thread.sleep.</p>
  
  <p>How bad is this?</p>
  
  <pre><code>for (int c = 0; c &lt; 5; c++) {
      new Thread().sleep(5000);
  }
  </code></pre>
  
  <p>compared to this?</p>
  
  <pre><code>for (int c = 0; c &lt; 5; c++) {
      Thread.sleep(5000);
  }
  </code></pre>
  
  <p>EDIT:</p>
  
  <pre><code>    final long start = System.currentTimeMillis();
      System.out.println("Total memory: " + Runtime.getRuntime().totalMemory());
      System.out.println("Free memory: " + Runtime.getRuntime().freeMemory());
      System.out.println("===========================");
      for (int c = 0; c &lt; 5; c++) {
          new Thread().sleep(5000);
          System.out.println("Used memory: " + (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()));
          System.out.println("===========================");
      }
      System.out.println("Total memory: " + Runtime.getRuntime().totalMemory());
      System.out.println("Free memory: " + Runtime.getRuntime().freeMemory());
      System.out.println("===========================");
      System.out.println("Time elapsed: " + (System.currentTimeMillis() - start) + " milliseconds");
  </code></pre>
  
  <p>Result (new Thread().sleep):</p>
  
  <pre><code>Total memory: 5177344
  Free memory: 4990904
  ===========================
  Used memory: 186440
  ===========================
  Used memory: 205136
  ===========================
  Used memory: 205136
  ===========================
  Used memory: 205136
  ===========================
  Used memory: 205136
  ===========================
  Total memory: 5177344
  Free memory: 4972208
  ===========================
  Time elapsed: 24938 milliseconds
  </code></pre>
  
  <p>Result (Thread.sleep):</p>
  
  <pre><code>Total memory: 5177344
  Free memory: 4990904
  ===========================
  Used memory: 186440
  ===========================
  Used memory: 186440
  ===========================
  Used memory: 204848
  ===========================
  Used memory: 204848
  ===========================
  Used memory: 204848
  ===========================
  Total memory: 5177344
  Free memory: 4972496
  ===========================
  Time elapsed: 24938 milliseconds
  </code></pre>