✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the result of compiling and running the following Java program? Select the correct answer.
public class Test {
public static void main(String args[]) {
int[] arr = {1,2,3,4};
call_array(arr[0], arr);
System.out.println(arr[0] + "," + arr[1]);
}
static void call_array(int i, int arr[]) {
arr[i] = 6;
i = 5;
}
}