PRO192_-_FA_2024_-_RE_3069.webp
Nitta93

PRO192_-_FA_2024_-_RE_3069.webp

  • Media owner Nitta93
  • Ngày thêm
Kizspy | Question: 37 (Choose 1 answer)
Given the following code snippet:float arr = new float[100]; //Line 1 arr[0]=3.4;//Line 2
Choose the correct statement.
A. 3.4 is a double type by default so we need to explicitly cast it to float
B. 3.4 is a float type by default so we don't need to explicitly cast it to float
C. There is no problem with these code lines
D. Line 1 will throw the indexOutOfBound exception

Thông tin

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

Share this media

Back
Bên trên Bottom