Note that all arrays are considered to implement the interface Cloneable. Otherwise, this method creates a new instance of the class of this object
and initializes all its fields with exactly the contents of the
corresponding fields of this object, as if by assignment; the contents
of the fields are not themselves cloned. Thus, this method performs a
"shallow copy" of this object, not a "deep copy" operation.
Java Array copy
最新推荐文章于 2024-08-14 10:11:20 发布