What does the hashCode() method? Anonymous User146113-May-2015javajava collection Updated on 23-Sep-2020
Anonymous User
13-May-2015The hashCode() method returns a hash code value (an integer number).
The hashCode() method returns the same integer number, if two keys (by calling equals() method) are same.
But, it is possible that two hash code numbers can have different or same keys.