class ArrayHolder {
int[] arr = new int[5];
}
public class Test {
public static void main(String[] args) {
ArrayHolder holder = new ArrayHolder();
System.out.println(holder.arr[0]);
changeArray(holder.arr);
System.out.println(holder.arr[0]);
}
static void changeArray(int[] array) {
array[0] = 10;
}
}
What will be the output of this code?