摘要: Object o=new Object();其中有两个受保护的方法: 1、protected void finalize() 2、protected Object clone() 1、System.out.println( o );//输出的时候默认调用的是该对象的toString() 方法 2、toString() public String toString() { return getClass().getName() + "@" + Integer.toHexString(hashCode()); } Integer.toHexString(hashCode()): 阅读全文
posted @ 2013-12-16 13:58 考虑到五岁的限制 阅读(263) 评论(0) 推荐(0)