a= 10
b= 10
so in the map both a and b are having same address values i.e. 1234 is the address where value 10 is stored so both a and b will be pointing to the same address. But is we change the value of a in this case does it affect the value of b also becz the actual value at the memory adress got changed and it was refrred by both the variables.
Also how can we sure that the meory optimization is workingonly if the values are between -5 to 256.
Hope this helps!