PRO192_-_SU_2023_-_Block_5_-_2_754.webp
Minh Đức1

PRO192_-_SU_2023_-_Block_5_-_2_754.webp

(Choose 1 answer)
Finish
What will be the output of the following Java program?
public class Demo
public static void main(String[] args)
{
Map<Integer, Object> sampleMap = new TreeMap<Integer, Object>();
sampleMap.put(1, null);
sampleMap.put(5, null);sampleMap.put(3, null);
sampleMap.put(2, null);
sampleMap.put(4, null);
System.out.println(sampleMap);
}
}
A. {1=null, 5=null, 3=null, 2=null, 4=null}
B. {1=null, 2=null, 3=null, 4=null, 5=null}
C. (5=null, 4=null, 3=null, 2=null, 1=null}
E16

Thông tin

Category
PRO192
Thêm bởi
Minh Đức1
Ngày thêm
Lượt xem
3,107
Lượt bình luận
22
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_2_754.webp
File size
49 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom