摘要:
访问修饰符的可见域 • private—The member is accessible only from the top-level class where it is declared.• package-private—The member is accessible from any cl 阅读全文
摘要:
x.clone()!=x will be true x.clone().getClass()==x.getClass() will be true x.clone().equals(x) always true. 意味着深复制,新建对象,数据与结构与原对象一致, Copying an object 阅读全文
摘要:
for example,PhoneNumber@163b91 class name+@+unsigned hexadecimal representation of hashcode. define: a concise but informative representation that is 阅读全文
摘要:
you must override hashCode in every class that overrides equals,particularly HashMap,HashSet,Hashtable. The key provision that is violated when you fa 阅读全文
摘要:
title:重载equals方法要遵循的一般约定 Each instance of the class is inherently unique 实例存在主键 You don't care whether the class provides a "logical equality" test. s 阅读全文
摘要:
Finalizers are unpredictable,often dangerous,and generally unnecessary,in java. may cause poor ferformance,instability behavior,and portability(移植) pr 阅读全文