随笔分类 - JDK导读
摘要:先抛出两段有意思的代码: 1、猜猜下面代码的输出结果是什么: 2、实现swap方法: 分割线 1、答案:true false 在我们的认知里,如果i1==i2为true的话,那么i3==i4理论上也应该为true,很明显,结果告诉我们:i1和i2是同一个对象,i3和i4是不同对象 为什么会出现这样的
阅读全文
摘要:记录几个比较特别的1、protected Object clone() throws CloneNotSupportedException 其中官方文档中有一句:The class Object does not itself implement the interface Cloneable, s
阅读全文
摘要:1) AbstractList 12) AbstractMap 13) AbstractSet 14) ArrayList 15) LinkedList 16) HashMap 17) Hashtable 18) HashSet 19) LinkedHashMap 110) LinkedHashSe
阅读全文
摘要:看看wiki关于java.lang包的描述: The Java package java.lang contains fundamental classes and interfaces closely tied to the language and runtime system. This in
阅读全文
摘要:首先看看wiki里的关于jdk结构的说明,已经非常清晰。虽然是英文版,但建议大家还是认真读一读。 1、Nomenclature, standards and specifications 2、General purpose packages 2.1java.lang 2.2java.io 2.3ja
阅读全文

浙公网安备 33010602011771号