Question: Given the following declaration, which expression returns the size of the array, assuming that the array reference has been properly initialized? int[] array; Select the
Given the following declaration, which expression returns the size of the array, assuming that the array reference has been properly initialized?
int[] array;
Select the one correct answer.
(a) array[].length()
(b) array.length()
(c) array[].length
(d) array.length
(e) array[].size()
(f) array.size()
(g) array[].size
(h) array.size
Step by Step Solution
There are 3 Steps involved in it
d In Java arrays are ob... View full answer
Get step-by-step solutions from verified subject matter experts
