Multiple choice

Which of the following array declarations is not correct?

  1. Student s[];

  2. Student s[]=new Student[4];

  3. Student s[][]=new Student[5][];

  4. Student s[][]=new Student[5][3];

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The declaration Student s[] is incorrect. All the other array declarations are correct.