Kotlin is a language that is well known for the interoperability with the java language. Kotlin is good for Mobile-cross platform, Native, Data-Science, Server-side, Web-development, Android. Interoperability is possible in both the languages because of the JVM (Java Virtual Machine) or in other words we can say that they are compiled to the same bytecode.
The most common program when we start learning any language after Hello World Program is to add two numbers. From as easy it may sound to making it modular and complex even to the extent adding 2 numbers without using the “+” operator.
Below are the examples to add 2 numbers in different ways:
This article talks about best kotlin books to refer, when you aspire to become an efficient Kotlin programmer. Like every other programming language, Kotlin has some pre requisites. Before we choose a book, let’s have a look at what about parameters you should keep in mind before finalizing the one which would help you ace the perfect skills:
In this tutorial you will learn how to take input and print output on console in Kotlin.
Here you will learn about kotlin basic types.
Data types are fundamental when it comes to any programming language, basically it tells the compiler the type of data it should expect in the defined variable. It can be a string, bool, integer, float, double, char and many more. Lets discuss them one by one in detail.
Here you will learn about difference between var and val in Kotlin i.e. var vs val.
Both var and val are keywords that are used to declare variable in Kotlin. But there is a little difference between them as mentioned below.
In this tutorial you will learn about Kotlin variables.
In programming world, variable is responsible for storing some value. The value is stored at some memory location. A memory location or address may look something like 0x7ff9c05f. It is not easier to remember or use it to access the value stored at the memory address.
This tutorial is about Kotlin vs Java i.e. difference between Kotlin and Java.
Kotlin and Java both are JVM based and platform independent languages and there are various similarities in them. Kotlin and Java program on compilation converted into .class file which is executed by JVM. Still there are various dissimilarities between them that I have discussed below in tabular form.
In this tutorial we will make Kotlin hello world program.
When we start learning any new programming language, hello world is the very first program that we mostly make. So below I have shared the program along with its explanation.
In this tutorial you will learn how to run Kotlin program in Eclipse IDE.
Below is the step by step procedure to install Kotlin plugin and then configure Eclipse to run Kotlin program. The process is same and should work on all Eclipse versions.