打印对象的hashcode值
hashcode值默认是底层的系统根据内存的地址值算出来的一个值
我们可以重写对象的toString方法
public String toString(){
//this是可以省略的
// return this.getClass().getName()+"@"+Integer.toHexString(this.hashCode());
return getClass().getName()+"@"+Integer.toHexString(hashCode());
}
04-13
04-13