Question: Language/Type: Java parameters The following console program uses parameters and produces two lines of output. What are they? public class Parameter Mystery1 { public static

Language/Type: Java parameters The following console program uses parameters and produces two lines of output. What are they? public class Parameter Mystery1 { public static void main(String[] args) { int x = 9; int y = 2; int z = 5; mystery(z, y, x); mystery(y, x, z); } public static void mystery(int x, int z, int y) { System.out.println(z + ", " + (y - x)); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
