标签:常用类 exce stc code img equals clone hash span
Object类
常用方法:clone(),equals(),hashCode()
clone():
报错原因:clone()方法的返回值是Object型,然而TestClone继承Object类,所以是大类型转小类型需要强转
报错原因:undandled exception type CloneNotSupportedException(未处理的异常类型CloneNotSupportedException)
运行时报错原因:
标签:常用类 exce stc code img equals clone hash span
原文地址:https://www.cnblogs.com/myfaith-feng/p/7788345.html