What is the output of the following code? int[] arr1 = new i…
What is the output of the following code? int[] arr1 = new int[5];int[] arr2 = new int[5];arr1[0] = 7;arr2[0] = 9;arr1 = arr2;System.out.println(“arr1[0] = ” + arr1[0]);arr2[0] = 12;System.out.println(“arr1[0] = ” + arr1[0]);
Read Details