摘要: 有两个类 father,son,son继承father father f = new son();//向上转型 f 指向子类 son s = (son)f;//向下转型 s 指向子类 阅读全文
posted @ 2017-06-08 20:08 雪浪snowWave 阅读(174) 评论(0) 推荐(0)
摘要: 7月18日更: hashMap 是懒加载 只有put的时候 才创建数组 线程不安全主要体现在rehash,也就是扩容时候出现链表成环。链表插入的时候(jdk1.8是在尾部插入,1.8之前是头部插入) hashMap的存入过程: Object >hashCode(hashCode ^ hashCode 阅读全文
posted @ 2017-06-08 01:28 雪浪snowWave 阅读(247) 评论(0) 推荐(0)