What is the relationship between classes like Kotlin's Int, Float, Double and Java's Integer/int, Float/float, Double/double?
From what I understand of the Kotlin documentation, it seems that once compiled to jvm bytecode, the Kotlin classes no longer exist, and depending on nullability, the class will either be a primitive or a boxed class:
This is my understanding
Kotlin Int -> java int
Kotlin int? -> java Integer
Furthermore, It seems there is no way to get the Kotlin class of an object while running in the JVM, is this correct? The best I am able to do is get the Java class through the javaClass property ( I think it is a property?)
So if my understanding is correct, a Kotlin developer who wants to avoid object allocation would not work with nullable types, is this right?
One last question: Is this forum the best place to ask these beginner-level Kotlin questions? I am afraid of spamming the wrong place.