Cloneable注解使用

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

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

posted @ 2019-12-23 18:11  java.matt  阅读(314)  评论(0)    收藏  举报