Page 1 of 1

About Question enthuware.ocpjp.v7.2.1732 :

Posted: Thu Sep 04, 2014 3:46 pm
by hamada.yamasaki
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

Re: About Question enthuware.ocpjp.v7.2.1732 :

Posted: Thu Sep 04, 2014 7:42 pm
by admin
Nowhere. Not sure I understand your question. The question does not say that it is private.
Paul.

Re: About Question enthuware.ocpjp.v7.2.1732 :

Posted: Fri Sep 05, 2014 12:12 am
by hamada.yamasaki
I re-read and it say's final NOT private.
Thanks for your time