What is the default clone of HashSet?
(a) Deep clone
(b) Shallow clone
(c) Plain clone
(d) Hollow clone
(a) Deep clone
(b) Shallow clone
(c) Plain clone
(d) Hollow clone
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The correct option is (b) Shallow clone
Explanation: Default clone() method uses shallow copy. The internal elements are not cloned. A shallow copy only copies the reference object.