Kotlin

Why Kotlin?

Kotlin has become a popular contender for running on the JVM as Java is and there are many reasons for this. While Java is notorious for boilerplate code, it’s difficulty in avoiding null pointer exceptions, tedious getters and setters and lack of modern programming features, Kotlin makes up for these shortcomings by being 100% compatible with Java, is easy to read and understand, eliminates null pointer exceptions and has modern features like smart type casting.

Java

public class HelloWorld {

 public static void main(String[] args) {
   System.out.println("Hello Java!");
 }  
}

Kotlin

fun main(args: Array<String>)
{
  println("Hello Kotlin!")
}