java Object.clone()与System.arrayCopy()区别?
两个都是复制对象,有什么区别吗?
1.clone
https://www.zhihu.com/question/52490586
2.arrayCopy
https://www.zhihu.com/question/53749473
java Object.clone()方法为什么要设计成protected,而不是public?
public,子类就可以直接调用clone()方法。
而不是去实现克隆接口。
https://www.zhihu.com/question/52490586
https://www.zhihu.com/question/30576819
https://www.zhihu.com/question/35240637/answer/61845590
https://stackoverflow.com/questions/1138769/why-is-the-clone-method-protected-in-java-lang-object
http://tracylihui.github.io/2015/07/24/designPattern/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F%EF%BC%9A%E5%AF%B9%E8%B1%A1%E7%9A%84%E5%85%8B%E9%9A%86%E2%80%94%E2%80%94%E5%8E%9F%E5%9E%8B%E6%A8%A1%E5%BC%8F/#
clone
https://en.wikipedia.org/wiki/Clone_(Java_method)
arrayCopy
http://m.itboth.com/d/MRne6r/system.arraycopy
http://www.bijishequ.com/detail/541976?p=