ZonedDateTime hashCode() method in Java with Examples
The hashCode() method of a ZonedDateTime class is used to get the hashcode for this ZonedDateTime. Hashcode is a unique code generated by the JVM at time of object creation. It can be used to perform some operation on hashing related algorithm like hashtable, hashmap etc. An object can also be searched with this unique code.
public ZoneId hashCode()
Parameters: This method does not take any parameters.
Return value: This method returns an integer value representing a suitable hash code.
Below programs illustrate the hashCode() method: