源码分析String

 

hashCode

计算每个char值,并移位累加

计算后的hash值会缓存

 

posted @ 2018-07-19 18:14  funny_coding  阅读(100)  评论(0编辑  收藏  举报
build beautiful things, share happiness