Pages

Kotlin tutorial

Kotlin Introduction:

So before start lets talk about some very common question...

  • Why kotlin?
  • What type of app we can create using Kotlin?
  • Is kotlin going to replace Java in the future?

Overview:
Kotlin a statically typed language.
Kotlin is a JVM language.......Kotlin needs JVM(java virtual machine) to execute byte code that's why kotlin called a JVM language.
As kotlin is a new language that's why the developers of the kotlin have a great idea during the development of kotlin, they keep in mind the issues and bugs of the previous language and they don't want to repeat them, so they avoid that issue.
the major issue of the previous language is...... NullPointerException.
So kotlin have support to avoid NullPointerException.
Kotlin supports Immutability.
Kotlin is also an Object-Oriented language like you used java and etc.
Kolin supports Functional Programming-
  • You can pass a function as parameter to another function
  • or, a function can return another function.
Less ceremony-
  • Code looks clean
  • Less code, more result in compare to another language
  • No more boilerplates

                                              

No comments:

Post a Comment