摘要: 查看HashMap源码,发现这个static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; 值为16。 这个是位移算法。 例如: 4<<2 阅读全文
posted @ 2017-09-18 16:49 【clover】 阅读(7018) 评论(0) 推荐(0)