|
|
|
|
|
by wpollock
18 days ago
|
|
> But it uses flyweight instances for values up to 256, so in Java, whether two Integers with the same numeric value are equal according to the = operator depends on what that value is. ... I believe Java caches Integer objects for values -128..+128, not 256. But that may be an implementation detail, and not something to count on. |
|