Junior
Is it true that a Set can only contain unique values?
sobes.tech AI
Answer from AI
Yes, a Set in Java guarantees that it only stores unique elements. When attempting to add a duplicate, the existing element will not be replaced or added again.