Home » JAVA Programming » Collections » Question
  1. What is the premise of equality for IdentityHashMap?
    1. Hashcode equality
    2. Length equality
    3. Name equality
    4. Reference equality
    5. None of these
Correct Option: D

IdentityHashMap is rarely used as it violates the basic contract of implementing equals() and hashcode() method.



Your comments will be displayed only after manual approval.