Predict the output:
String a[ ] = {“FLORIDA”, “AMAZON”, “WASHINGTON”};
a) What is the range of indices for array a?
b) What is the length of the array?
c) What is the result of a[2].length()?
Answers
Answered by
3
Answer:
a):-Range is 2
b):-Length is 3
c):-Result of a[2].length is 10
Answered by
18
a) Range:- 0-2
b) Length:- 3
c) Result:- 10
Similar questions