What will be the output of the following program?
int[] arr1 = {1, 2, 3}; int[] arr2 = arr1; arr2[0] = 10; System.out.println(arr1[0]);
1
10
Compilation Error
Runtime Error
This question is part of this quiz :