title: Creating a Vector of Objects in Java
body: <p>Is the following valid in Java:</p>
  
  <pre><code>public Vector &lt;Object&gt; objVector = new Vector &lt;Object&gt;(50);
  </code></pre>
  
  <p>I know by default the values are stored as objects, but I would like to know how to restrain the contents by type...</p>
  
  <p>Thanks</p>