# Boxing of number giving true for number less than 128

**URL:** <https://discuss.kotlinlang.org/t/boxing-of-number-giving-true-for-number-less-than-128/15927>\
**Category:** Support\
**Created:** [January 16, 2020, 7:36pm UTC](https://discuss.kotlinlang.org/t/boxing-of-number-giving-true-for-number-less-than-128/15927 "2020-01-16T19:36:33Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![fatjoe79](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/fatjoe79/32/4221_2.png) [@fatjoe79](https://discuss.kotlinlang.org/u/fatjoe79)\
**Post date:** [August 1, 2020, 6:54am UTC](https://discuss.kotlinlang.org/t/boxing-of-number-giving-true-for-number-less-than-128/15927/6 "2020-08-01T06:54:54Z")

</div>

Boxing an Int in an object does not mean that a new object is used each time. Indeed, on the jvm all integer literals up to 128 use the same object when boxed. A practice known as interning.

---

_[View the full topic](https://discuss.kotlinlang.org/t/boxing-of-number-giving-true-for-number-less-than-128/15927)._
