Loading practice questions
Which of the following are primitive data types in Kotlin?
Correct Answer: B — Boolean, Byte, Short, Int, Float, Long, Double, Char
Explanation:
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.