Q. What is the output of {1, 2}.add(3)?
Solution:
add(3) inserts 3 into the set, resulting in {1, 2, 3}.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
add(3) inserts 3 into the set, resulting in {1, 2, 3}.
Strengthen Your Practice with our comprehensive question bank.