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

1 Expert Approved Answer
Step: 1 Unlock

d In Java arrays are ob... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!