What will be output from the following code segment, assuming it is in the same class as the doSomething method?
int[] arr = {1, 2, 3, 4};
doSomething(arr);
System.out.print(arr[1] + " ");
System.out.print(arr[3]);
...
public void doSomething(int[] list)
{
int[] b = list;
for (int i = 0; i < b.length; i++)
b[i] = i;
}
(A) 0 0
(B) 2 4
(C) 1 3
(D) 0 2
(E) 0 3