Page 1 of 1

What will the following code print out when it is run? int[] a = {2, 5, 7}; int[] b = {1, 3, 4}; int[] c = a, a[0] = b[1

Posted: Sun Jul 10, 2022 11:29 am
by answerhappygod
What Will The Following Code Print Out When It Is Run Int A 2 5 7 Int B 1 3 4 Int C A A 0 B 1 1
What Will The Following Code Print Out When It Is Run Int A 2 5 7 Int B 1 3 4 Int C A A 0 B 1 1 (28.34 KiB) Viewed 44 times
What will the following code print out when it is run? int[] a = {2, 5, 7}; int[] b = {1, 3, 4}; int[] c = a, a[0] = b[1]; c[1] = a[0]; System.out.print(a[1]); O 05 2 0 1