title: Java: How to treat generic heterogeneous containers?
body: <p>While dealing with heterogeneous containers (i.e. database cursor with strings, ints etc.), what (and <strong>why</strong>) is better approach:</p>
  
  <pre><code>Vector&lt;?&gt; 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Vector&lt;Object&gt;
  </code></pre>
  
  <p>You can substitute Vector for any other Collection, that's just example. </p>