Home » JAVA Programming » Data Structures » Question
  1. What is the default clone of HashSet?
    1. Hollow clone
    2. Deep clone
    3. Shallow clone
    4. Plain clone
    5. None of these
Correct Option: C

Default clone() method uses shallow copy. The internal elements are not cloned. A shallow copy only copies the reference object.



Your comments will be displayed only after manual approval.