title: Theoretical limit for number of keys (objects) that can be stored in a HashMap?
body: <p>Is there a theoretical limit for the number of key entries that can be stored in a HashMap or does the maximum purely depend on the heap memory available? </p>
  
  <p>Also, which data structure is the best to store a very large number of objects (say several hundred thousand objects)?</p>