Q35.webp
ThanhTam81

Q35.webp

Kizspy Question: 35
(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
ThanhTam81
Ngày thêm
Lượt xem
2,018
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom