2/7牛客網阿里面試——主要HashMap

1.Object中的方法: 1.protected native Object clone() throws CloneNotSupportedException 克隆方法——用於對象拷貝,所以你所創建的類必須要繼承Cloneable接口否則報錯。 class Person implements Cloneable{ @Override protected Object clone() throw
相關文章
相關標籤/搜索