I have tried using Int and Integer types in Kotlin.Although I don\'t see any difference. Is there a difference between Int and Integer types in Kotlin?Or are they the same?
A Int is a primitive Type. This is equivalent to JVM int.
Int
A nullable Int Int? is a boxed Type. This is equivalent to java.lang.Integer.
Int?
java.lang.Integer