🔤Kotlin
A newer language that runs side by side with Java. The top pick for Android apps.
Think of it like
Think of it like a newer model of a trusted bike. Same frame and parts fit, but the ride is smoother.
Example
Google named Kotlin the first choice for Android in 2019. A team in Berlin then moves its app over, file by file.
Why it matters
Anyone building for Android today will meet Kotlin. It also runs on servers and in shared mobile code.
Definition
Example code
kotlin
fun main() {
println("Hello, world!")
}Common mistake
Key takeaways
- 1Works with Java. Both run on the JVM together.
- 2Less code. The same job takes fewer lines.
- 3Null-safe. It checks for empty values before running.