Java IdentityHashMap get() methodThe get(Object key) method of the Java IdentityHashMap is used to get the value which is linked with the specified key, in the calling IdentityHashMap or null, if the key is not linked with any value. SyntaxParameterskey - The key whose linked value is to be found. ReturnThe value which is linked with the specified key or null, if the key is not connected with any value. Example 1Test it NowOutput: 1 4 null Example 2Test it NowOutput: Java best null Example 3Test it NowOutput: Student@70dea4e Student@5c647e05 Student@33909752 null
Next Topicjava IdentityHashMap
|