Prev Next

Java / Set and its implementations

What copy technique internally used by HashSet clone() method?

To create a clone or copy of the Set object, HashSet internally uses shallow copy in clone() method, the elements themselves are not cloned.

More Related questions...

Show more question and Answers...


Comments & Discussions