Because the Integer
type interns the values (by the static class IntegerCache
) from -128 to 127.
solved How is it possible that 127==127 while 128!=128? [duplicate]
Because the Integer
type interns the values (by the static class IntegerCache
) from -128 to 127.
solved How is it possible that 127==127 while 128!=128? [duplicate]