Skip to main content

Kotlin for Android Developers

Kotlin is the statically typed language that Google recommends for Android development. Its null safety, concise functions, collection operators, lambdas and coroutines let you write short, safe code. It is the first skill on the Android path, because every Compose screen, ViewModel and Room query is written in it.

Stage: Kotlin and Android Basics · Part of the Android Developer roadmap · Last reviewed 19 November 2026

What to learn in Kotlin

Kotlin interview questions

How does Kotlin prevent NullPointerException?

Types are non-null by default, so a String cannot hold null. A nullable type like String? forces you to handle the missing case with a safe call, the Elvis operator or a null check before the compiler lets you use the value. The not-null assertion !! exists but bypasses this protection.

What is the difference between a coroutine and a thread?

A coroutine is a lightweight suspendable computation scheduled on top of threads. Suspending frees the thread to run other work instead of blocking it, so thousands of coroutines can run on a few threads. A thread is an operating system resource that is far more expensive to create and switch.

Where Kotlin fits in the Android Developer roadmap

Kotlin belongs to the Kotlin and Android Basics stage (beginner level), which takes about 7 hours. The language and the platform.

Back to the full Android Developer roadmap