Why does an empty Java String have hash code zero?

前端 未结 0 897
说谎
说谎 2020-12-13 19:44

Only recently, I discovered that an empty String has hash code zero. This is surprising to me because null is normally assigned hash code zero, e.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题