title: Maximum size of HashSet, Vector, LinkedList
body: <p>What is the maximum size of <code>HashSet</code>, <code>Vector</code>, <code>LinkedList</code>? I know that <code>ArrayList</code> can store more than 3277000 numbers.</p>
  
  <p>However the size of list depends on the memory (heap) size. If it reaches maximum the JDK throws an <code>OutOfMemoryError</code>.</p>
  
  <p>But I don't know the limit for the number of elements in <code>HashSet</code>, <code>Vector</code> and <code>LinkedList</code>.</p>