Kotlin Hello World

Chapter: Kotlin Last Updated: 11-11-2017 18:04:53 UTC


            /* ............... START ............... */
// Hello World Program

package hello

fun main(args : Array<String>) {

    println("Kotlin - Hello World ")

                /* ............... END ............... */


Kotlin - Hello World


  • Kotlin is a statically-typed programming language that runs on the Java virtual machine and also can be compiled to
  • JavaScript source code or use the LLVM compiler infrastructure.
  • Popular Java IDE to run Kotlin is IntelliJ IDEA.
  • Steps to set up new project in IntelliJ IDEA.
  • Click Create New Project.
  • In menu, select Koltin > Kotlin (JVM) and hit Next to work with Kotlin/Java.
  • Give the name project select location and press finish button, then you are ready to run Kotlin programs.
  • Like Java package header is optional.
  • Main fuunction in Kotlin takes an Array of strings as a parameter.
  • Println is used to print statement as like System.out.println in java
  • In Kotlin Semicolons are optional, after println there is no semicolon.
Similar Programs Chapter Last Updated
Kotlin Continue Kotlin 02-03-2018
Kotlin Break Statement Kotlin 27-01-2018
Kotlin For Loop Kotlin 30-11-2017
Kotlin Do While Loop Kotlin 19-11-2017
Kotlin While Loop Kotlin 19-11-2017
Kotlin When Statement Kotlin 18-11-2017
Kotlin Nested If Kotlin 18-11-2017
Kotlin If Else If Statement Kotlin 22-09-2018
Kotlin If Statement Kotlin 17-11-2017
Kotlin Print And Println Kotlin 22-09-2018
Kotlin Type Conversion Kotlin 17-11-2017
Kotlin Logical Operators Kotlin 17-11-2017
Kotlin Assignment Operators Kotlin 15-11-2017
Kotlin Arithmetic Operators Kotlin 15-11-2017
Kotlin Data Types Kotlin 12-11-2017
Kotlin Variables Example Kotlin 11-11-2017
Kotlin Comments Example Kotlin 11-11-2017