In the reference.I saw this code.
val a: Int = 10000
val boxedA: Int? = a
val anotherBoxedA: Int? = a
print(boxedA === anotherBoxedA) // !!!Prints ‘false’!!!
When I run this code in my intellij idea. I get the result ‘false’.
But when I modify the code like below.
val a: Int = 1
val boxedA: Int? = a
val anotherBoxedA: Int? = a
print(boxedA === anotherBoxedA)
I got the result ‘true’.