PRO192_-_SU_2024_-_FE2_2332.webp
Nanami871

PRO192_-_SU_2024_-_FE2_2332.webp

Kizspy | Question: 42 (Choose 1 answer)
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
Nanami871
Ngày thêm
Lượt xem
4,307
Lượt bình luận
13
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom