Cloneable注解使用


使用 clone()方法的类必须 implement Cloneable 

如果没有继承,clone()方法会报错 java.lang.CloneNotSupportedException异常

相关