Question: The following Java code contains which of the following errors ( if any ) ? int [ ] [ ] arr = new int [

The following Java code contains which of the following errors (if any)?
int[][] arr = new int[3][];
int[] row1={1,2,3};
int[] row2={1,2,3,4};
int[] row3={1,2,3,4,5};
arr[0]= row1;
arr[0]= row3;
int[][] arr2= new int[10][10];
for ( int i =0; i <10; i++){
for ( int j =0; j <10; j++){
arr[i][j]/= arr2[j][i];
}
}
Question 41 options:
Syntax error
Runtime error
No error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!