Learn Kotlin Step by Step
A free, step-by-step Kotlin course for beginners. The lessons are in order: start at Lesson 1 and follow the Next link at the bottom of each lesson. Every lesson has runnable examples with their output, common mistakes, an exercise and an FAQ.
Who this course is for
- Complete beginners who have never programmed
- Java developers moving to Kotlin
- Anyone preparing to build Android apps
How to follow it
- You need no installation for the first lessons: the Kotlin Playground runs in your browser.
- Type the examples yourself instead of copying them – you’ll remember much more.
- Do the exercise at the end of each lesson before moving on.
Module 1: Getting started
- What is Kotlin?
- Set up Kotlin (Playground, IntelliJ IDEA, Android Studio)
- Your first Kotlin program
- Basic syntax
Module 2: Basics
Module 3: Operators
- Arithmetic operators
- Comparison operators
- Logical, assignment and increment operators (coming soon)
Module 4: Control flow
- if-else expression (coming soon)
- when expression (coming soon)
- Practice: calculator using when
- for loop and ranges (coming soon)
- while, do-while, break and continue (coming soon)
Module 5: Null safety
- Null safety: ?, ?., ?:, !! and let (coming soon)
Module 6: Functions
- Types of functions
- Function return types
- Unit vs void vs Nothing
- Default and named arguments, vararg (coming soon)
- Lambdas and higher-order functions (coming soon)
- Extension functions (coming soon)
- Scope functions: let, run, with, apply, also (coming soon)
- How functions are used in real apps
Module 7: Collections
- Arrays (coming soon)
- List and MutableList (coming soon)
- Set (coming soon)
- Map (coming soon)
- List to map
- Collection operations: map, filter, reduce (coming soon)
Module 8: Object-oriented programming
- Class and object
- Constructors and init (coming soon)
- Inheritance: open, override, super (coming soon)
- Visibility modifiers (coming soon)
- Abstract classes (coming soon)
- Interfaces
- Data classes (coming soon)
- Enum classes (coming soon)
- Sealed classes (coming soon)
- object and companion object (coming soon)
- Generics (coming soon)
Module 9: Advanced Kotlin
- Exception handling (coming soon)
- Type checks and smart casts (coming soon)
- Delegation: by lazy and by (coming soon)
Module 10: Coroutines
- Coroutines basics (coming soon)
- Dispatchers and scopes (coming soon)
- Kotlin Flow (coming soon)
Module 11: Practice and next steps
- JSON to Kotlin data class
- Kotlin interview questions (coming soon)
FAQ
Is this Kotlin course free?
Yes. Every lesson is free to read, with no sign-up.
How long does it take to learn Kotlin?
If you study an hour a day, you can finish the basics (Modules 1–6) in about two to three weeks. The later modules take longer and are easier with practice projects.
Do I need to know Java first?
No. This course starts from zero. Knowing Java helps, but it isn’t required.
What should I learn after Kotlin?
Android app development with Jetpack Compose. Our Android guides are the next step.
