Kizspy Question: 36
(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