title: Why Stack in java cannot be created with type parameter(generic)
body: <p><code>Stack</code> is a generic class in Java, it definition is class <code>Stack&lt;E&gt; extends Vector&lt;E&gt;</code>, but why I cannot instantiate it with type parameter like <code>Stack&lt;Integer&gt; s = new Stack&lt;&gt;();</code> But a <code>Vector</code> can? </p>