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 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
Get step-by-step solutions from verified subject matter experts
