Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of the below is valid way to instantiate an array?
int[][] x = {{1}, {2, 3, 1}, {5, 9}}
int[][] x = new int[2][]; x[1] = new int[2]; x[0] = new int[2];
int[] x = new int[3]; int x[0]=2; int x[1]=6; int x[2]=3;
int[][] x = {1, {2, 3, 1}, 5, 9}
int[][] x = new int[2][]; x[0] = new int[2]; x[1] = new int[2]; x[2] = new int[4];
int[] x = {2, 3, 6}
int[] x = new int[3]; x[0]=2; x[1]=6; x[2]=3;
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!