Код: Выделить всё
System.out.println("incrementResultResponses() has been invoked!");
final long oldValue = resultResponses;
final long newValue = resultResponses++;
System.out.println("Old value = " + oldValue);
System.out.println("New value = " + newValue);
Код: Выделить всё
incrementResultResponses() has been invoked!
Old value = 0
New value = 0
Подробнее здесь: https://stackoverflow.com/questions/916 ... t-behavior