An Overview of the Kotlin Programming Language
Kotlin is another general-purpose programming language running on JVM. Kotlin programs can be compiled into Java bytecode or native machine code (using LLVM).
Kotlin was created by JetBrain, and it was later adopted, by Google, as a preferred language for Android programming. Kotlin is influenced by many languages including Java, Groovy, Scala, and other modern programming languages like Haskell and C#.
Kotlin Main Features
- Kotlin is statically and strongly typed.
- Kotlin supports type inference.
- Kotlin supports simpler and more compact syntax than Java.
- Classes in Kotlin are public and final by default.
- Kotlin supports top-level functions unlike Java.
- Kotlin supports destructuring and unpacking.
- Java 17 record syntax is now supported in Kotlin since version 1.5.
- Kotlin programs can use Java libraries and vice versa.
- Class files written in Kotlin and Java can be used together in a program.
- Kotlin programs can also be directly transpiled to Javascript.
Hello World in Kotlin
fun main() {
println("Hello World!")
}
More on Hello World in Kotlin
If you are interested in finding out more about the Kotlin programming language, then here's an explanation of the Hello World program in Kotlin in a little more detail:
- Hello World (Kotlin): Kotlin Hello World - A quick explanation
C C++ C# Clojure Crystal D Dart Erlang F# Go Haskell Java Javascript Julia Lua Python Rust Scala Swift Typescript