java克隆对象时报CloneNotSupportedException,解决方案如下实现Cloneable接口即可
作者:互联网
考查对object类的掌握
问:
a.CloneNotSupportedException
b.NotCloneableException
c.IllegalCloneException
d.NotClonesAllowedException
解析:
如果对象的类没有实现Cloneable接口,Object类的clone()方法就会抛出CloneNotSupportedException异常
答:
a
标签:java,CloneNotSupportedException,Object,IllegalCloneException,接口,Cloneable 来源: https://www.cnblogs.com/Liven-ok/p/15631911.html