Javatpoint Logo
Javatpoint Logo

Java Locale hashCode() method

The hashCode() method of Java Locale class returns a hash code for this locale. This method overrides the hashCode.

Syntax

Return

It returns a hash code value for this locale.

Example 1

Test it Now

Output:

Locale: java_T_point
HashCode for this locale: -1713116582

Example 2

Test it Now

Output:

Locale1: java_T_point
HashCode for locale1: -1713116582
Locale1: java_T_point
HashCode for locale1: -1713116582
Next TopicJavaScript Array



Help Others, Please Share

facebook twitter pinterest