Question DSA-HASH-0054
MediumWhy might two different strings have the same hash code in Java?
- A.
Hash codes are 32-bit integers, so collisions are unavoidable for the infinite set of strings
- B.
Strings are mutable
- C.
Sign up free to see the answer and a step-by-step explanation.