java.com
Get started with Java today
Oracle Java is the #1 programming language and development platform. It reduces costs, shortens development timeframes, drives innovation, and improves application services.
Oracle Java is the #1 programming language and development platform. It reduces costs, shortens development timeframes, drives innovation, and improves application services.
It would be nice if javac could generate different code for the values() method that does not rely on array.clone().EVALUATION Per 6627366, it looks like Cloneable and Serializable have to be on the class path if a program uses Java arrays.