IdentityHashMap Class

  • It is exactly same as HashMap (including methods and constructors) except the following differences
    • In the case of normal hashmap, jvm will use .equals method to identify duplicates keys
    • In the case of identify hashmap, jvm will use == operator to identify duplicate keys which is meant for reference comparison.(Address comparison)

Leave a Comment