Question: public static String overloaded(int x) { return overloaded(x, answer); } public static String overloaded(int x, String str) { return The + str +
public static String overloaded(int x) { return overloaded(x, "answer"); } public static String overloaded(int x, String str) { return "The " + str + " is " + x; } public static void main(String[] args) { System.out.println(overloaded(42, question)); // line 1 System.out.println(overloaded(42)); // line two }
what'd line 1 and line 2 be? thx
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
