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
a Java allows arrays of length ... View full answer
Get step-by-step solutions from verified subject matter experts
