The synchronized code is the key to answering this question. Because
x and
y are both incremented inside the synchronized method they are always incremented together. Also keep in mind that the two threads share the same reference to the
Q126 object.
Also note that because of the infinite loop at line 13, only one thread ever gets to execute.