← All tutorials

Skill Zuno · skillzunos.com · Fullstack

Kotlin tutorial

Learn Kotlin on Skill Zuno. This Kotlin tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical Kotlin problems on skillzunos.com.

Open Kotlin on Skill Zuno

Also see the Kotlin interview questions.

Kotlin is a statically typed JVM language from JetBrains and Google's preferred language for Android. It interoperates fully with Java while adding null safety, data classes, extension functions and coroutines. Kotlin interviews test null safety, data and sealed classes, scope functions and coroutines.

Kotlin topics covered

  • val versus var and type inference — Read-only versus mutable variables, and letting the compiler work out types.
  • Null safety: ?, ?., ?: and !! — How Kotlin's type system eliminates most NullPointerExceptions.
  • Data classes, sealed classes and objects — Concise models with generated methods, closed hierarchies, and object declarations.
  • Extension functions and properties — Adding functions to existing classes without inheritance.
  • Scope functions: let, run, apply, also and with — Five similar helpers and a simple guide to choosing between them.
  • Higher-order functions, lambdas and inline functions — Passing functions around, and how inline removes the cost of lambdas.
  • Coroutines, suspend functions and structured concurrency — Writing asynchronous code sequentially, and cancelling it safely with scopes.
  • Flow and interoperability with Java — Asynchronous streams of values with Flow, and calling Kotlin from Java and back.

What you can learn

  • Kotlin tutorial for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack topics alongside Kotlin on skillzunos.com

More Fullstack tutorials

All tutorials