Answer:
output :
34
34 34
Step-by-step explanation:
output :
34
34 34
Having that the variable y is passed as pass by value to method increment Integer, this is even as y value incremented it doesn't effect actual y value.
Hence, having seen this, y will not be incremented after the execution of method and to move Point method we passed point object
and we accessed X,Y through point object that's why they incremented.