Kotlin
Welcome, champion! 🔥
You've mastered 0 of 164 lessons. Start your first lesson free — no signup needed.
About this course
Kotlin is a statically typed language that runs on the JVM, calls Java code directly, and is used for back-end services, Android apps and shared multiplatform code. This online Kotlin course on Abekus teaches the Kotlin 2.x language itself on the JVM through short reading-card lessons, each followed by an MCQ quiz, all built on one running example: a library-loan console app with books, members and loans.
Who this Kotlin course is for
It is written for developers who already know one other language, such as Java, Python or JavaScript, and for freshers preparing for Kotlin back-end or Android roles who want the language right before the frameworks. No earlier Kotlin experience is needed: the first lesson is a ten-line program with a main function, println, val and var, and every later idea is added to the same app.
The course is about the language, not Android. It does not teach Android UI, Jetpack Compose or the Android lifecycle, which belong to a separate Android course, and it names Kotlin/JS, Kotlin/Native, Wasm and Compose Multiplatform without teaching their code. Spring Boot, Ktor and Gradle appear only as short practice lessons, and experimental features are left out.
How the lessons work
Each lesson is a short set of reading cards on one idea, usually with a few lines of Kotlin and the output they print, followed by a quiz of multiple-choice questions. Lessons run from basics up. You start with types, operators, ranges, strings and control flow, including when as an expression and try as an expression, then functions with default and named arguments. Next come null safety with the safe call, elvis and not-null operators, smart casts and platform types from Java; classes, properties, inheritance and interfaces; and data, sealed, enum, value and object declarations. Later topics cover lambdas, inline functions and the five scope functions, collections and sequences, generics and variance, extensions and delegation, coroutines and flows, and Java interop, Gradle and testing with kotlin.test. You go at your own pace.
The same code is used throughout. Books are always data class Book(isbn, title, author, year, copies), members always have a nullable email, and borrow always returns a sealed LoanResult of Success, Failure or NotFound, so each new feature is shown changing code you have already read.
MCQ practice vs video courses for Kotlin
Video courses on Udemy, Coursera or YouTube are a good fit if you want to watch an instructor type out a project. This course is built for a narrower job: reading a short explanation with real Kotlin and then checking straight away whether you can predict what it prints or whether it compiles. Kotlin has many constructs that look alike, such as val and const val, == and ===, let and apply, a sealed class and an enum, launch and async, or a List and a Sequence, and the quickest way to find where you mix them up is to answer questions that make you choose. Many learners use both formats: a video for a project build, and question practice for the language rules.
Common Kotlin mistakes
The course takes these on directly, because developers coming from Java or Python make them often:
- Using !! to silence the compiler. It turns a compile-time check into a runtime NullPointerException; safe calls and the elvis operator are usually better.
- Treating val as a deep constant. val stops reassignment of the reference, not changes inside a mutable object.
- Assuming a List is immutable. List is a read-only view, and the same object may still be changed through a MutableList reference.
- Expecting Java's checked exceptions. Kotlin has none, so failure has to be handled by design, with exceptions, Result or sealed types.
- Starting coroutines with GlobalScope. Structured concurrency ties each coroutine to a scope so cancellation and errors propagate correctly.
- Blocking a thread inside a coroutine. Use suspend functions and withContext(Dispatchers.IO) for blocking work.
Best way to learn Kotlin
Learn it by writing small, idiomatic changes to one program and asking what each construct replaces. Model data with a data class, return a sealed type instead of null, transform collections with map and filter, and move slow calls into suspend functions. The last part of the course works this way: it compares Kotlin with Java, data classes with regular classes, sealed classes with enums, sequences with lists and coroutines with Java threads, helps you choose a scope function, a collection type and an error-handling style, and shows where Kotlin is used in Spring Boot services, Ktor servers, multiplatform shared logic, Gradle build scripts and Android apps.