Kotlin Data Types
Explore Int, Float, Double, Char, Boolean, String and more, with type conversion.
Boolean Data type Usage and Type Conversion in Kotlin
Boolean data type represents only two values.Either true or false. A Kotlin example with source code and sample output.
Byte Data type Usage and Type Conversion in Kotlin
A byte is an 8-bit number in Kotlin. A Kotlin example with source code and sample output.
Char Data type Usage and Type Conversion in Kotlin
Char data type is represented by single apostrophe just like Java in Kotlin. A Kotlin example with source code and sample output.
Double Data type Usage and Type Conversion in Kotlin
Double is a 64-bit number in Kotlin. A Kotlin example with source code and sample output.
Page not found
Page not found - example program with explanation, syntax, and sample output.
Float Data type Usage and Type Conversion in Kotlin
A float is a 32-bit number in Kotlin. A Kotlin example with source code and sample output.
Int Data type Usage and Type Conversion in Kotlin
Int is a 32-bit number in Kotlin. A Kotlin example with source code and sample output.
Long Data type Usage and Type Conversion in Kotlin
A Kotlin example program demonstrating Long Data type Usage and Type Conversion, complete with the source code and expected sample output.
Number Data type Usage and Type Conversion in Kotlin
There are 6 built-in types of numbers in Kotlin. A Kotlin example with source code and sample output.
Short Data type Usage and Type Conversion in Kotlin
Short is a 16-bit number in Kotlin The type is to be declared explicitly. A Kotlin example with source code and sample output.
String Data type Usage and Type Conversion in Kotlin
String Data type Usage and Type Conversion in Kotlin: a complete example program with source code and sample output, explained step by step.