Java EnumMap hashCode() methodThe hashCode() method of Java EnumMap class is used to get the hashcode value of the EnumMap.This method returns an integer whose value is the sum of the hash codes of each entry in the map. SyntaxParametersNA ReturnsThis method returns the hash code value for this map. ExceptionNA Example 1Output: Hash code value of the map: -450357866 Hash code value after clearing the map: 0 Example 2Output: Hash code value of the map: -1315471824 Hash code value after clearing the map: 0 Next TopicJava-enummap-keyset-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India