PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp
plum_blossom1

PRO192_-_FA_2024_-_Block_5_-_FE_3237.webp

Kizspy | Question: 41
(Choose 1 answer)
What is the output of the following code snippet?
Set<Integer> set1 = new HashSet();
set1.add(1); set1.add(2); set1.add(3); set1.add(1);
Set<Integer> set2 = new HashSet();
set2.add(1);set2.add(4);
set1.removeAll(set2);
System.out.println(set1);
A. [2, 3]
B. [3,1]
C. [1,2]
D. [4,1]

Thông tin

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

Share this media

Back
Bên trên Bottom