This is a preview. Sign up to view the full content.
6. What is the output produced by the following code? int a = 1; int b = 2; int c = 3; int w = Math.max(a, b) - Math.min(b, c); int x = Math.max(c, Math.min(a, b)); int y = Math.min(a, Math.max(b, c)); int z = Math.min(Math.max(a, b), Math.max(b, c)); System.out.println(w + " " + x + " " + y + " " + z);