Skip to main content

Kotlin Data Types

Explore Int, Float, Double, Char, Boolean, String and more, with type conversion.

1
Kotlin Data Types

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.

2
Kotlin Data Types

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.

3
Kotlin Data Types

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.

4
Kotlin Data Types

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.

5
Kotlin Data Types

Page not found

Page not found - example program with explanation, syntax, and sample output.

6
Kotlin Data Types

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.

7
Kotlin Data Types

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.

8
Kotlin Data Types

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.

9
Kotlin Data Types

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.

10
Kotlin Data Types

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.

11
Kotlin Data Types

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.

Related Topics

Search tutorials