I have got some information that string addition using + allows moved to new memory address in java but in case for int it is not happening why?
means
String a="fi-rstname";
a=a+" "+lastname;
a+" "+lastname moves to the new address instead of address of a
but for
int a=22;
a=a+2323;
a+2323; vale does not move to the new address for addition why?