Question: Is it possible to create arrays of length zero? Select the one correct answer. (a) Yes, you can create arrays of any type with length

Is it possible to create arrays of length zero?

Select the one correct answer.

(a) Yes, you can create arrays of any type with length zero.

(b) Yes, but only for primitive data types.

(c) Yes, but only for arrays of reference types.

(d) No, you cannot create zero-length arrays, but the main() method may be passed a zero-length array of Strings when no program arguments are specified.

(e) No, it is not possible to create arrays of length zero in Java.

Step by Step Solution

3.49 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Java allows arrays of length ... 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!