Could anyone please tell what are the important use cases of IdentityHashMap?
IdentityHashMap
Whenever you want your keys not to be compared by equals but by == you would use an IdentityHashMap. This can be very useful if you're doing a lot of reference-handling but it's limited to very special cases only.
equals
==