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
About Question enthuware.ocpjp.v7.2.1732 :
Moderators: Site Manager, fjwalraven
-
- Posts: 17
- Joined: Fri Oct 11, 2013 10:31 am
- Contact:
-
- Site Admin
- Posts: 10386
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1732 :
Nowhere. Not sure I understand your question. The question does not say that it is private.
Paul.
Paul.
-
- Posts: 17
- Joined: Fri Oct 11, 2013 10:31 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1732 :
I re-read and it say's final NOT private.
Thanks for your time
Thanks for your time
Who is online
Users browsing this forum: No registered users and 6 guests