
Step 2: Specify the project name and location, and select the Java version (1.8+) in the project SDK. Select Kotlin in the menu on the left and Kotlin/JVM from the options on the right Step 1: Create a new project by selecting “Create New Project” on the welcome screen or go to File → New → Project. The following steps help you to create and run a new Kotlin project in IntelliJ. You do not need to install any separate plug-ins to run Kotlin programs. Kotlin comes bundled with recent versions of IntelliJ. With that, let’s move on and learn how to run our first Kotlin program.įirst, you need to have the latest version of IntelliJ IDEA installed. But, I am using IntelliJ IDEA as it is the platform which is mainly designed and developed for Kotlin and a viable IDE. You can use either Eclipse or IntelliJ or Android Studio to develop applications. Now let’s take a look at the different platforms on which you write and develop your Kotlin applications. So, these are some of the features that add to the popularity of the Kotlin programming language. Less error-prone : As I mentioned earlier, Kotlin is a statically typed programming language, which enables you to catch errors at compile-time, as statically typed programming languages compile- Do type checking on time.

If you come from a Java background, you will find it easy to learn Kotlin. You will never have any difficulty using Kotlin in a Java project.įeature-rich : Kotlin provides many advanced features such as operator overloading, lambda expressions, string templates, etc.Įasy : The Kotlin programming language is easy to learn. Interoperability: The Kotlin programming language is highly interoperable with Java. Let us now get into the details of the various features:īrief: Kotlin is more concise than Java and you have to write about 40% less lines of code than Java. The reason for Kotlin’s popularity is because of its unique features.
