Answer:
x =5
y =6
Explanation:
The reason behind that is that while using the reference P2 we have setted the values of X and Y both as 5 and 6 respectively in the main function.
After setting we are calling the setXY function which sets the value to 3 and 4 for X and Y respectively but does not implement in the value to the instance.
Apart from which setX and setY function are setting the values with respect to the instance variable using "this" keyword.
Hence, the values 5 and 6 are been displayed at the end of the main method.