kingsley
07/24/2017, 9:32 AMval a: Int? = 20 doesn’t use Integer(20), but rather Integer.valueOf(20).
Like @diesieben07 said, this function returns cached objects within a defined range, hence the equality passes. But you shouldn’t rely on this behavior