Question: why this answer is 3?not 5? Why this one is 5? What is printed? class Pair l int x, y public Pair(int x, int y)f
why this answer is 3?not 5?

Why this one is 5?

What is printed? class Pair l int x, y public Pair(int x, int y)f this.x=x; thi s. yy public class Go public static void main (String[] args) [ Pair p = new Pair (3,4); modify(p) System. out. println(p. x); public static void modi fy (Pair p)[ p = new Pair (5,6)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
