Which syntax is incorrect to initialize a two-dimensional array in Java?
PYQ RPSC Programmer 2024
Which syntax is incorrect to initialize a two-dimensional array in Java?
- A.
int myarr[][] = new int[3][4];
- B.
int[][] myarr = {{1, 2, 3}, {4, 5, 6}};
- C.
int[][] myarr = new int[3][4];
- D.
int myarr = new int[3][4];
- E.
Question not attempted
Attempted by 338 students.
Sign up free to check your answer
Sign up freeLoading lesson…

