Java
IdentityHashMap and WeakHashMap:== Keys and GC-able Keys
Use IdentityHashMap when keys are compared with ==, and WeakHashMap when the GC should drop entries whose keys are otherwise unreachable — two unusual maps, two different jobs.
Read More