摘要: HashMap Node数组 初始化是16,扩容因子0.75(As a general rule, the default load factor (.75) offers a good tradeoff between time and space costs.时间和空间平衡),扩容2的N次幂。 阅读全文
posted @ 2022-05-10 22:53 倔强的老铁 阅读(38) 评论(0) 推荐(0)
摘要: 1.与运算(&)都是1才是1,其他都是0 1 & 1 = 1; 1 & 0 = 0; 0 & 1 = 0; 0 & 0 = 0; 2.或运算(|)有1就是1。 0 | 0 = 0; 0 | 1 = 1; 1 | 0 = 1; 1 | 1 = 1; 0010 1011 | 0101 0100 = 01 阅读全文
posted @ 2022-05-10 20:54 倔强的老铁 阅读(1242) 评论(0) 推荐(0)