stackyFACTS
Why Java treats small integers differently
STACKY / Technology
Technology

Why Java treats small integers differently

HERE’S THE INTERESTING PART

Java caches boxed integers from -128 through 127 so those values can be reused instead of newly allocated. This applies to boxed Integer objects, not all small-number calculations.

One discovery leads to another.

Keep exploring facts in this topic.

Technology →
STACKY FOR IPHONE

A bigger world.
One discovery
at a time.

Keep discovering with Stacky. Interesting facts in an app that is always within reach.

Download on the App Store
ONE MORE DISCOVERY?

Keep exploring

All in this topic →
StackyMore discoveries in the app
Download on the App Store