Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No. The string hash is stored as part of the String object. It is initialized to 0 but gets set to the real hash of the string on first call to hashCode()

(which is why it will be computed over and over again if your special string happens to hash to 0)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: