The output of your code is ’10’, which is the value we handed into the ‘x’ variable on the ‘MyClass’ item.
In Java, this is really a reference variable that refers back to the current object on which the method or constructor is being invoked. It