Array support (shallow) cloning, mostly.
From section 10.7 of the JLS :
All array type members from the following:
- The public final field length that contains the number of components in the array (the length can be positive or zero).
- A public, public clone method that overrides a method with the same name in a class object and does not throw exceptions. The clone return type of the array type T [] is T [].
- All members inherited from the Object class; the only object method that is not inherited is its clone method.
and
Each array implements the Cloneable and java.io.Serializable interfaces.
source share