What is Kotlin?
Kotlin is a statically typed programming language for the JVM, Android and the browser which is now officially supported by Google For Android.
Kotlin language is developed by JetBrain who is creator of IntelliJ IDEA. Android Studio is also based on IntelliJ IDEA. In Google I/O 2017, Kotlin is declared as official language for Android development.
— Kotlin (@kotlin) May 17, 2017
short and sweet
Write less and perform more operations. In java, if you want to create a data class, it will take a long time to create members, getter & setters. But with Kotlin, you can do it with few lines of code like,
data class Person(
var id: Long,
var name: String,
var age: Int)
Kotlin will automatically generate necessary methods & toString() as well.
When we write code in Java, developer requires to spend more time to fix NPE (Null Pointer Exception). But if you are using Kotlin, null exception will never happen as we need to explicitly initialize object as null. It will avoid null pointer exception for entire class.
You can use functional paradigm like Lamdas with Kotlin. It will be very easy to declare listeners & method calls by using Lamdas.
You can use Java class & libraries along with Kotlin as interoperability is very much between both languages.
How to start using Kotlin in Android
From Android Studio 3.0, Kotlin is fully supported with it. For previous versions of Android Studio, you require to install plugin to work with Kotlin.
More to read.