`val a: Int? = 20` doesn’t use `Integer(20)`, but ...
# getting-started
k
val 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