Multiple Choice
Suppose you have the following declaration. double[] salesData = new double[500]; Which of the following range is valid for the index of the array salesData. (i) 0 through 500 (ii) 0 through 499
A) Only (i)
B) Only (ii)
C) Both are invalid
D) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: Which indices are in bounds for the
Q3: If an array index is less than
Q4: Suppose that you have the following declaration.
Q5: In a method call statement, when passing
Q6: What is the value of table.length?<br>A) 0<br>B)
Q7: Suppose list is a one-dimensional array, wherein
Q8: The method size in the class Vector
Q9: How many rows are in the array
Q10: What is the value of alpha[4] after
Q11: When an array object is instantiated, its