Which are legal declarations?

  1. short x [];

  2. short [] y;

  3. short [5] x2;

  4. short z2 [5];

  5. short [] z [] [];

  6. short [] y2 = [5];


Correct Option: A,B,E

Find more quizzes: