PRO192_-_SP_2025_-_Block_5_-_1_3854.webp
M

PRO192_-_SP_2025_-_Block_5_-_1_3854.webp

Kizspy | Question: 42
(Choose 1 answer)
FLEVER LOW LOM
Can we add a duplicated element into a Set in Java?
A. No, if we add a duplicated element into a Set, the Set will keep the old element and remove the new one.
B. No, the procedure will raise an exception
C. Yes, we can add a duplicated element into a Set and the Set will keep the new element and remove the old
one
D. Yes, we can add a duplicated element into a Set and the Set will maintain 2 elements including the old
element and the duplicated one

Thông tin

Category
PRO192
Thêm bởi
Mahito2001
Ngày thêm
Lượt xem
2,541
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom