What is the artifact of autoboxing and the fact that Integer is immutable in Java.
a++ and a-- translated something like this.
int intA = a.getInt( ); intA++; a = Integer.valueOf( intA ); // this is a reference different from b
Alexander Pogrebnyak Jun 21 '10 at 14:11 2010-06-21 14:11
source share