Kotlin is a programming language developed by JetBrains for modern multiplatform applications. It runs on the Java Virtual Machine(JVM) and also can be compiled to JavaScript code or use the Low Level Virtual Machine(LLVM) compiler infrastructure. It is safe, concise and fun to read and write.
why kotlin ?
kotlin is a statically typed programming that works in JVM, Android, JavaScript, and Native. It compiles to bytecode which makes a strong case for incorporating performance tuning into the development. some main features:
1. Open Source: Kotlins is distributed under Apache License, Version 2.0. The kotlinc(Kotlin compiler), Intellij IDEA plugin, enhancements to basic Java libraries and build tools all are open source.
2. Interoperable with Java and Android: It is designed with Java interoperability in mind. This means all current java and the android code works smoothly with kotlin.
3. Easy to Learn: It is influenced by Java, Scala, Groovy, C#, JavaScript and Gosu so learning kotlin is easy as one is familiar with any other programming language.
4. Tool-friendly: As it is developed by JetBrains, it's is seamlessly integrated with IDE developed by them. Some of IDE were IntelliJ IDEA, Android Studio, Eclipse and also work with command line using kotlin compiler.
5. Safe: Avoid entire classes of errors such as null pointer exceptions. It also has the ability to catch more errors at run-time as it is statically typed.
Many companies like Coursera, Atlassian, Evernote, Uber, Pinterest, Corda, Netflix, Trello etc. are using kotlin to create applications. At Google, I/O held on 17 May 2017, Android team announced Kotlin as an official language for Android app development.
Tools for learning kotlin are:
1. IntelliJ IDEA,
2. Android Studio,
3. Eclipse, and
4. Also, kotlinc (kotlin compiler) for the command line.
Link: kotlin compiler
Link: kotlin compiler
First Kotlin Program:
fun main(args : Array<String>){
println("Hello, Kotlin!")
}
println("Hello, Kotlin!")
}
output:
Hello, Kotlin!
Above code is equivalent to
class HelloJava{
public static void main(String[] args){
System.out.println("Hello, Java!");
}
}
Kotlin Website(Official site):
To learn kotlin, the official site is the most reliable source to follow:
1. kotlin reference,
2. kotlin tutorial, and
3. kotlin Blog.
1. kotlin reference,
2. kotlin tutorial, and
3. kotlin Blog.
Comments
Post a Comment