3
answers
0
watching
190
views
26 Feb 2018
16. What prints when the following snippet of code is executed? int[] foo = {1,2,3); int() foo2 = foo; int[] bar = {1,1,1); foo2 [1] = 1; bar[2] = 3; System.out.print (foo [1]); System.out.print(" "); System.out.println(foo == bar);
16. What prints when the following snippet of code is executed? int[] foo = {1,2,3); int() foo2 = foo; int[] bar = {1,1,1); foo2 [1] = 1; bar[2] = 3; System.out.print (foo [1]); System.out.print(" "); System.out.println(foo == bar);
14 Feb 2023
Casey DurganLv2
27 Feb 2018
Already have an account? Log in