Basic Data Types

Learn how to represent and store numbers and text in Kotlin.

Kotlin is a statically typed language, meaning that the data type of every expression is known at compile time.

Integers #

There are four basic data types to store integer numbers of different sizes in Kotlin:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy