Question: public class Final { public int display(int x, int y) { return (the sum of x and y is + x + y); }

public class Final { public int display(int x, int y) { return ("the sum of x and y is " + x + y); } public static void main(String[] args) { Final f = new Final(); System.out.println(f.display(4, 5)); } } Your answer: The sum of x and y is 9 The sum of x and y is 45 It won't compile O None of them
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
