Mar 27, 2018

When does a HashMaps get() method go into an infinite loop

A put() operation can cause re-sizing, which can further lead to infinite loop, that's why either you should use a Hashtable or ConcurrentHashMap (the latter is recommended).