On the JVM, `Int?` uses Java's `Integer` class?
# getting-started
f
On the JVM,
Int?
uses Java's
Integer
class?
d
Correct
f
Thank you! And the actual numeric value is stored in the
value
field I assume
d
You shouldn't have to worry about, both Java and Kotlin have autoboxing.
You can use a boxed int just like an unboxed.
f
yea I just want to understand it on a theoretical level
Integer
is like any other Java class with fields and methods?
d
Correct
f
thanks
d
It has a single field
value
which stores the int