MCQ
Which of the following is proper syntax of variable declaration in Java ?
  • A
    <variable-names> {type-name};
  • B
    {variable-names} <type-name>;
  • C
    <type-name><variable-names>;
  • <type-name> {variable-names};

Answer

Correct option: D.
<type-name> {variable-names};
D

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