Introduction to Kotlin

 Kotlin:

Introduction: 

It's created by Jetbrains. Kotlin can be used for JVM and Android. It is a statically type-safe language. 


As we all know that Java complied code called bytecode. Which runs on Java Virtual Machine.

So we can convert Kotlin code to java. Java is platform-independent which we will be able to run Kotlin as well. Which is great !!! 


Now Google has announced Kotlin is the official language for Android. Kotlin's main feature is interoperability with Java. 




Why Kotlin over Java?

  • Interoperable with Java
  • Easier to code
  • Increase productivity 
  • Nullability issue:  Cons of Java in which it is called a Null Pointer Exception. Kotlin’s type system is built to eliminate Null Pointer Exception.

Reference:


Happy Coding 😊


Comments

Popular posts from this blog

Nullability in Kotlin