2/7牛客网阿里面试——主要HashMap

1.Object中的方法: 1.protected native Object clone() throws CloneNotSupportedException 克隆方法——用于对象拷贝,所以你所创建的类必须要继承Cloneable接口否则报错。 class Person implements Cloneable{ @Override protected Object clone() throw
相关文章
相关标签/搜索