2
answers
0
watching
152
views
9 Jul 2018
12. What prints as a result of the following code being run? public static void main(String[] args) { int x = 8; int y = 3; foo (x,y); System.out.println(x + " " + y); public static int foo (int x, int y) { x = x + 2; int temp = x; x = y; y = y + 2; x = temp; return x; (A) 83 (B) 166 (C) 163 (D) 38 (E) 168
12. What prints as a result of the following code being run? public static void main(String[] args) { int x = 8; int y = 3; foo (x,y); System.out.println(x + " " + y); public static int foo (int x, int y) { x = x + 2; int temp = x; x = y; y = y + 2; x = temp; return x; (A) 83 (B) 166 (C) 163 (D) 38 (E) 168
16 Feb 2023
Irving HeathcoteLv2
11 Jul 2018
Already have an account? Log in