Collection framework series in Java- Identity HashMap and its internal working explained in detail

preview_player
Показать описание
You can learn Java with me as the Java Programming language is being made easily. It would take a period of minimum three months and maximum 6 months to master Java. I would recommend you to watch all my videos to crack any software interviews that would require Java Programming language as a primary skill.

IdentityHashMap:-
================
1. IdentityHashMap implements Map Interface.
2. It was introduced in JDK1.4 version.
3. IdentityHashMap is completely similar to HashMap***************
HashMap uses equals() method to validate to validate the duplicates.
IdentityHashMap uses == operator to validate the duplicates.

Please be informed that IdentityHashMap is a specialized implementation of the Map interface that uses reference-equality(===) instead of Object equality(==) for comparing keys.
Рекомендации по теме