Question: For each method call indicate what its output will be in the corresponding numbered answer below. Be sure to give exact answer including correct

For each method call indicate what its output will be in the 

For each method call indicate what its output will be in the corresponding numbered answer below. Be sure to give exact answer including correct number of spaces. public class ParameterMystery { public static void mystery(String x, String y, String z) { System.out.println(z + " and +x+ the " + y); } " public static void main(String[] args) { " Ans1 Ans2 String a "harry"; String b = "sally"; String c = "molly"; String tom= "tommy"; String john "johnny"; mystery (a, b, c); //Ans1 mystery (tom, c, john); //Ans2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!