Why Arrayish implements Cloneable?

Brian Goetz brian.goetz at oracle.com
Wed Apr 27 14:25:21 UTC 2016


Because array types (int[], String[]) *already* implement Cloneable and 
Serializable.




On 4/27/2016 10:18 AM, Paul Benedict wrote:
> I only ask because Cloneable is typically looked at as a poor mechanism for
> duplicating objects. That's the sentiment, anyway, widely popularized by
> the Effective Java book.
>
> Cheers,
> Paul




More information about the valhalla-dev mailing list