摘要: 1.如果HashMap的大小超过了负载因子(load factor)定义的容量,怎么办? 默认的负载因子大小为0.75,也就是说,当一个map填满了75%的bucket时候,和其它集合类(如ArrayList等)一样,将会创建原来HashMap大小的两倍的bucket数组,来重新调整map的大小,并 阅读全文
posted @ 2019-11-19 19:38 Practical 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: ByteBuffer Test: package java_guide; import java.nio.ByteBuffer; public class ByteBufferMethods { public static void main(String[] args) { //分配缓冲区(All 阅读全文
posted @ 2019-11-19 16:32 Practical 阅读(204) 评论(0) 推荐(0) 编辑