[Solved] Parameter Mystery

Question 2

Parameter Mystery At the bottom of the page, write the output produced by the following program, as it would appear on the console. (Though the program uses words related to arithmetic, the output does not necessarily follow the rules of addition.) public class ParameterMystery { public static void main(String[] args) { String i = "j"; int j = -1; int k = 2; String x = "5"; int y = 7; silly(k, i, j); silly(y, x, k); silly(k, "y", 4); silly(j + 1, x + 1, j); } public static void silly(int k, String i, int j) { System.out.println(j + " + " + k + " + " + i); } }

Show Answer

10+ million students use Quizplus to study and prepare for their homework, quizzes and exams through 20m+ questions in 300k quizzes.


Explore our library and get Programming Homework Help with various study sets and a huge amount of quizzes and questions


Study sets





Upload material to get free access

Upload Now Upload Now
Upload Now

Invite a friend and get free access

Upload NowInvite a friend
Invite a friend

Subscribe and get an instant access

See our plansSee our plans
See our plans