Why is the clone() method protected in java.lang.Object?
The fact that clone is protected is extremely dubious – as is the fact that the clone method is not declared in the Cloneable interface. It makes the method pretty useless for taking copies of data because you cannot say: if(a instanceof Cloneable) { copy = ((Cloneable) a).clone(); } I think that the design of … Read more