ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which of the following are primitive data types in Kotlin?
Correct Answer: B — Boolean, Byte, Short, Int, Float, Long, Double, Char
In Kotlin all primitive data types are Objects. So, they start with Capital Letters. Unlike java, it doesn't use the Wrapper class for primitive data types to behave like Objects. It reduces the confusion of two different Implementation of Numbers type which makes Kotlin more concise.