Why does java have new?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/433591/why-do-c-and-java-bother-with-the-new-operator">Why do C# and Java bother with the &ldquo;new&rdquo; operator?</a>  </p>
</blockquote>



<p>Why does java have the new keyword? To create an object of type <code>A</code>, I have to type <code>A a = new A()</code>.</p>

<p>Java doesn't have stack allocation, so why couldn't that just be simplified to <code>A a = A()</code>?</p>
