MCQ
In Java, what can we not specify at the same time while declaring an array?
  • The size of dimensions and initial values of the array elements.
  • B
    Initial values of an array and their type
  • C
    The size of dimensions and their type
  • D
    None of these

Answer

Correct option: A.
The size of dimensions and initial values of the array elements.
The size of dimensions and initial values of the array elements.

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free