1.

Which three form part of correct array declarations?

  1. public int a [ ]
  2. static int [ ] a
  3. public [ ] int a
  4. private int a [3]
  5. private int [3] a [ ]
  6. public final int [ ] a

A. 1, 3, 4
B. 2, 4, 5
C. 1, 2, 6
D. 2, 5, 6
Answer» D. 2, 5, 6


Discussion

No Comment Found

Related MCQs