

There’s also a Kotlin/Native project “to allow compilation for platforms where virtual machines are not desirable or possible (such as iOS or embedded targets).”.It can also be compiled to JavaScript to create web browser client-side applications. Kotlin can be used to create server-side applications, GUI applications with Swing and JavaFX, and Android applications.Kotlin doesn’t have its own collections classes, it just provides extensions to the Java collections classes.Kotlin works extremely well with the thousands of Java libraries that have been developed over the years.Kotlin lets you choose between generating Java 6 and Java 8 compatible bytecode. Kotlin source code compiles to “.class” files that run on the JVM.You can write your code using OOP, FP, or combine them in a hybrid style.

It can also be used as a functional programming (FP) language, so functions are also variables, and you can pass them into other functions.Every variable is an object, and every “operator” is a method. It’s a pure object-oriented programming (OOP) language.From the Kotlin Language Documentation: “Rough estimates indicate approximately a 40% cut in the number of lines of code (compared to Java).” It’s syntax is concise but still readable.It has a sophisticated type inference system.Per the Kotlin Language Documentation, it’s design is influenced by Java, C#, JavaScript, Scala and Groovy.Kotlin first appeared in 2011, was open-sourced in 2012, and is now used by companies throughout the world, including Square, Pinterest, Basecamp, Evernote, and many more. Kotlin is a modern programming language created by JetBrains, the makers of the IntelliJ IDEA IDE (and other products).
