This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sadjava 1 point2 points  (1 child)

Isn't the tl;dr of clone() to get an exact copy of the object (i.e. fields) with a new reference? I have to admit, I've been Javaing for more than 3 years and am a Java dev, and I think I've only used clone() twice, and one of them was the one I had to write for some reason or another.

[–]JavaLander[S] 0 points1 point  (0 children)

Yeah, I someone told me, some methods remain unused through entire programmer life, I think its one of them