MCQ
By which of the following, a 1-D array can be initialized using comma separated values of data elements in Java?
  • A
    [ ]
  • { }
  • C
    ( )
  • D
    anyone

Answer

Correct option: B.
{ }
{ }

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