Possible Duplicate:
Why do C# and Java bother with the “new” operator?
Why does java have the new keyword? To create an object of type A, I have to type A a = new A().
Java doesn’t have stack allocation, so why couldn’t that just be simplified to A a = A()?
Because C++ did it so, I presume. Java was supposed to look superficially like C++, but with a greatly simplified and streamlined language.
In any case, you got a problem there:
What should happen here?
ctorormethod?