1chunk of code written in Kotlin is much smaller compared to Java, as it is less verbose and less code means fewer bugs. Kotlin compiles the code to a bytecode which can be executed in the JVM. Thus, all the libraries and frameworks made in Java can be moved and run in a Kotlin project.
1val age = 42
2
3if (age < 10) {
4 println("You're too young to watch this movie")
5} else if (age < 13) {
6 println("You can watch this movie with a parent")
7} else {
8 println("You can watch this movie")
9}
1Kotlin is a language built on and entirely backwards-compatible with Java.
2While Java is Object-Oriented first, Kotlin supports a blend
3of OO and functional paradigms. For further information, refer to
4kotlinlang.org