Getting Started With Kotlin

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!")

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

Screenshot 2022-08-09 at 11.01.11 PM.png

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.