Answer :

Answer:

Option(i) is true

Explanation:

In java arrays, index number of array is of integer type whereas each item of the array needs to be of same type but they can be of any type like string, integer, float etc. Their data type may match with the index's type but needs not necessarily be the same.

For example : arr[4]="Hello" is possible but arr[5]=45 is not legal as arr will contain items of similar data type.

Other Questions