About Question enthuware.ocpjp.v7.2.1732 :
Posted: Thu Sep 04, 2014 3:46 pm
As per the java docs , the clone method is protected in Enum.
And i also looked into the src code of java.lang.Enum line number 162 and it also have
protected final Object clone() throws CloneNotSupportedException {
throw new CloneNotSupportedException();
}
So where it is declared private? Thanks
And i also looked into the src code of java.lang.Enum line number 162 and it also have
protected final Object clone() throws CloneNotSupportedException {
throw new CloneNotSupportedException();
}
So where it is declared private? Thanks