Intermediate Vocabulary #kotlin #android #coroutines #null-safety

Kotlin Vocabulary

5 exercises — null safety operators, data classes, sealed classes, scope functions (let/apply/also), and coroutines (suspend, Dispatchers).

0 / 5 completed
Kotlin vocabulary quick reference
  • Null safety: String? nullable · ?. safe call · ?: Elvis · !! non-null assert
  • data class — auto-generates equals / hashCode / toString / copy / componentN
  • sealed class — closed hierarchy; enables exhaustive when expressions
  • Scope functions: let/alsoit; run/apply/withthis
  • suspend — pauses without blocking a thread; Dispatchers.IO for I/O, Default for CPU
1 / 5
A Kotlin developer explains: "Kotlin's null safety system forces you to choose between a nullable and non-nullable type at compile time." What do the operators ?, ?., ?:, and !! each do?