KotlinByLavaKumar
Kotlin:
2)π It is developed by JetBrains for modern multiplatform applications.
3)π Kotlin is concise, safe, pragmatic, and focused on interoperability with Java
code
4)π It can be used almost everywhere Java is used today - for server-side development, Android apps, and much more.
5)π Kotlin works great with all existing Java libraries and frameworks and runs with the same level of performance as Java.
6)π After a few years, Google wants to introduce a new Operating System for that Kotlin is the Base Language.
1) From many years, There is a clash between Oracle and Google regarding java. Java is native for Oracle for using Java as programming language Google pay's lots of money to it. Finally, Google fed up with that and introduced a new programming language called Kotlin.
2) And This Kotlin language has many advantages when compared to java
3) In Upcoming years google wants to launch a new Operating System named Fuchsia for that Koltin is the native Language.
4) JetBrains is Working for years for developing Kotlin.
5) One of the Stated goals of Kotlin is to compile as Quickly as Java.
6) In February 2012, JetBrains open sourced The project under the Apache License. JetBrains hopes that the new language will drive IntelliJ IDEA sales.
7) Kotlin v1.0 was released on February 15, 2016. This is Considered to be the first officially stable release by JetBrains.
8) At Google I/O 2017, Google announced first-class support for Kotlin on Android.
Kotlin is a statically typed language. Here are some of the important features of Kotlin:
- Open source
Kotlin is distributed under Apache License, Version 2.0. The Compiler (Kotlin compiler), IntelliJ IDEA plugin, enhancements to basic Java libraries and build tools all are open source. - Interoperable with Java and Android
It is 100% interoperable with Java and Android. This means all your current Java/Android code works seamlessly with Kotlin.
In fact, Android team announced Kotlin a first-class language for developing Android apps. In addition to that, it allows you to compile quite a few Kotlin projects to JavaScript modules. - Concise and Expressive
Rough estimation indicates that using Kotlin allows you to cut off the lines of code by approximately 40% (compared to Java). Expressive means, it's easy to write code that both humans and compilers can understand easily. - Easy to Learn
It is influenced by Java, Scala, Groovy, C#, JavaScript, and Gosu. Learning Kotlin is easy if you know any of these programming languages. It is particularly easy to learn if you know Java. - Tool-friendly
Kotlin is developed by JetBrains, a company renowned for creating development tools for professionals. No wonder, it is tool-friendly.
You can choose any Java IDE to run Kotlin or build it from the command line. - Safe
It is aimed at removing dangers of null references from the code (a big headache in Java). Also, it is statically typed which gives the ability to catch more errors at run-time (type-safe).
β€Present:
- Many companies like Netflix, Uber, Trello, Pinterest, Corda etc. are using Kotlin (along with other programming languages) to create applications.
- The number of lines of code increased from 2.1 million to 10 million in an interval of the year from 2016 to 2017.
- At recent Google I/O held on 17 May 2017, Android team announced Kotlin as an official language for Android app development.
- You can use replace Java code with Kotlin seamlessly. It is 100% interoperable with Java and Android.
- Though the majority of progress has been made on Java and Android, it's not a Java/Android language. It can compile many Kotlin projects to JS. Similarly, Kotlin/Native is under progress that compiles Kotlin directly to machine code.
β€Future:
The future plans include the concept of common module in Kotlin. It allows you to develop platform-specific functionality for multiplatform development.
Howβ
Suppose, you are trying to create a mobile app for iOS and Android. For that, you need to use Java, Kotlin programming etc for Android development, and swift, Objective-C etc. for iOS development (present situation).
In future, you will be able to write platform specific code (in Kotlin for Android and iOS app) in the implementation module. And, the common module includes common API and implementation headers (without implementation). This allows you to create both iOS and the Android app written in Kotlin.
According to Andrey Breslav, lead language designer and project manager of Kotlin, they already have the working prototype of it and shouldn't be very far. However, they are not promising anything yet until the feature is released.
Future Projects in Kotlin:π
- Cross-platform game development
- Cross-platform mobile application development
- Server-side and microservices
- Data analysis and machine learning
- Embedded system: Arduino/Raspberry Pi to professional controllers directly.
Run Kotlin In System:π
Let us start Our First Kotlin Application
You can use any popular Java IDE to run Kotlin. The most popular among them is IntelliJ IDEA (Community Edition). The latest version of IntelliJ IDEA fully supports Kotlin without any plugin. Just download IntelliJ IDEA, open it and follow the instructions to install it.
β’Open the IDEA.
β’Click On Start New Project.
β’Give The Name to Project.
β’Now go to Project > New > Kotlin File/Class to create a Kotlin file.
β’Give a name to your Kotlin file
β’That's it Your first Kotlin Project is ready.
Your First Kotlin Project:π
HelloWorld.Kt
fun main(args : Array<String>) {
println("Hello, world!")
}
Run the Program you will see the output likeHello, world!The Same HelloWorld code in Java:
class HelloWorldJava {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Run the Program you will see the output likeHello, world!Now, I think you all are comfortable with Kotlin it's similar to Java. If you are good in java it's very easy to learn. If you are not familiar with java then also its easy to learn.
Where to learn Kotlin:β
1) You can learn Kotlin from Online by Google
2) We have prescribed test book called Kotlin in Action you can learn from it.
**********( This book will be uploaded soon wait for it)*************
3) I will start Kotlin tutorial classes soon, You can learn From it.
Thanks for the always useful information. This is great information to help peoples and nice article written by writer. CnX Player is a powerful & efficient 4K ultra HD enabled video player for Windows 10 PC & Tablet, Android and iOS β iPhone & iPad.
ReplyDeleteDownload Media Player for Windows 10 - Microsoft Store
Download Video Player for Android from Google Play
Download Video Player for iPhone/iPad from Apple App Store