Java Thread.sleep long or int?
<p><code>Thread.sleep</code> takes a <code>long</code> as an argument for milliseconds.  But numeric literals are treated as integers unless specified otherwise with the letter notation like <code>1000L</code>.  So why is this valid code?</p>

<pre><code>Thread.sleep(1000);
</code></pre>