Java Array copy

来源:互联网 发布:新概念3必背课文知乎 编辑:程序博客网 时间:2024/06/06 04:15
Note that all arrays are considered to implement the interface Cloneable. Otherwise, this method creates a new instance of the class of this objectand initializes all its fields with exactly the contents of thecorresponding fields of this object, as if by assignment; the contentsof the fields are not themselves cloned. Thus, this method performs a"shallow copy" of this object, not a "deep copy" operation.
原创粉丝点击