check this JLS for postIncrements In this case, (x = x++) x gets increment to 6 but assigns the previous value to the expression. (i.e x = 5). so the output would be 5. Hope it helps.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.