Does Kotlin have primitive types?. When I declare the variable: val myAge: Int = 18 then the myAge variable stores the actual values is 18
val myAge: Int = 18
myAge
18
Short answer - yes and depends on the declaration.
val myAge: Int = 18 // this is primitive val myAge2: Int? = 18 // this is not
There's a very informative video about that https://www.youtube.com/watch?v=Ta5wBJsC39s