DEV Community

Cover image for Getting Started With Kotlin
Rishabh Kumar
Rishabh Kumar

Posted on • Originally published at codewithrish.com

Getting Started With Kotlin

What is Kotlin

Kotlin is general purpose, statically types and open source programming language. It uses JVM. Now a days majorly used to develop Android Apps can also be used in backend Ktor and have many other use cases.

Core Features of Kotlin

Kotlin is concise and provides null safety out of box. It is also Interoperable means you can call Java code from Kotlin and vice-versa. We also get extension function, we will learn everything in this Kotlin blog series.

Setup Environment

Install JDK-JVM Link to Download and install Intellij IDEA community version Link to Download now setup environment if you don't know how to follow the Link that's it you are good to go.

Let's Write First Program In Kotlin

Create Kotlin Project in Intellij IDEA and type following code in the editor

fun main() {
    println("Hello World!")
}
Enter fullscreen mode Exit fullscreen mode

Press run button looks like play button on top of you IDE

Intellij IDEA

That's All you just wrote your first Kotlin program few more to go :P then you will be ready to understand Android Codes and Modern Programming Architecture.

  • Kotlin Program starts from main function and we use println() function to print with new line character and simple print() to print in single line.

Top comments (0)