2020
10-10
10-10
Java HashMap源码及并发环境常见问题解决
HashMap源码简单分析:1一切需要从HashMap属性字段说起:/**Thedefaultinitialcapacity-MUSTbeapoweroftwo.初始容量*/staticfinalintDEFAULT_INITIAL_CAPACITY=1<<4;//aka16/***Themaximumcapacity,usedifahighervalueisimplicitlyspecified*byeitheroftheconstructorswitharguments.*MUSTbeapoweroftwo<=1<<30.最大容量*/staticfinalintMAXIMUM_CAPACIT...
继续阅读 >