Kotlin
A modern, more concise language that runs where Java runs, and the main one for Android.
Kotlin is a programming language created by JetBrains, the company behind the IntelliJ IDEA editor. It was announced in 2011 and reached version 1.0 in 2016. Like Java, it compiles to bytecode that runs on the JVM, so a Kotlin program can call Java libraries directly, and a team can add Kotlin files to an existing Java project one at a time.
The point was to keep everything good about the Java world while removing the boilerplate. The same class that takes thirty lines in classic Java can take three in Kotlin. It also attacks one of Java's most common crashes: by default a variable cannot hold null ("nothing"), and if you want it to, you have to say so with a ?, so the compiler forces you to handle the empty case before the program ever runs.
Its big moment came in 2017, when Google announced official Kotlin support for Android; two years later it declared Android development "Kotlin-first". Today most new Android apps and Google's own Android samples are written in Kotlin. It is also used for backend servers, and it can compile to JavaScript and to native code for sharing logic between Android and iOS.
Keep in mind
- Made by JetBrains; version 1.0 came out in 2016.
- Runs on the JVM and mixes freely with Java code in the same project.
- Google's preferred language for Android since 2019.
- Built-in null safety catches a whole family of crashes at compile time.