Java IdentityHashMap equals() method

The equal() method of the Java IdentityHashMap is used to check the equality of specified Object with the calling IdentityHashMap.

Syntax

Parameters

o - Object whose equality is to be compared with the calling IdentityHashMap.

Return

True, if the specified object is equal to the calling IdentityHashMap.

Example 1

Output:

true
false
false

Example 2

Output:

true
false
false