{"id":1525,"date":"2020-01-13T15:33:01","date_gmt":"2020-01-13T05:33:01","guid":{"rendered":"https:\/\/learntodroid.com\/?p=1525"},"modified":"2020-01-13T15:33:07","modified_gmt":"2020-01-13T05:33:07","slug":"should-a-beginner-learn-java-or-kotlin-for-android-app-development","status":"publish","type":"post","link":"http:\/\/10.0.0.14:32769\/should-a-beginner-learn-java-or-kotlin-for-android-app-development\/","title":{"rendered":"Should a beginner learn Java or Kotlin for Android app development?"},"content":{"rendered":"\n

Before you get started in Android app development you will need select a programming language you will use to write your Android app.<\/p>\n\n\n\n

While Android app development can be done in many different languages including C++, the two most common programming languages in modern native Android app development are Java and Kotlin.<\/p>\n\n\n\n

In this article I will take you through the similarities and differences between Java and Kotlin and I will make a case for why as a beginner at Android app development you would want to choose to use either Java or Kotlin.<\/p>\n\n\n\n

As an added bonus I have also included some information about cross platform development using frameworks like Flutter and React Native which allow you to create native apps in a single programming language that work across iOS, Android and the web.<\/p>\n\n\n\n

What is Java?<\/h2>\n\n\n\n

Java is a programming language that was created by James Gosling at Sun Microsystems and was released in 1995 which has since been acquired by Oracle during 2009 – 2010.<\/p>\n\n\n\n

Java supports class based object oriented programming and is used in a variety of different applications such as web applications, client server applications, APIs and microservices, desktop applications as well as Android apps.<\/p>\n\n\n\n

When developing applications in Java the application is compiled into bytecode that is able to run on any Java virtual machine regardless of computer architecture or operating system which enables cross platform development.<\/p>\n\n\n\n

Java is consistently ranked as the most popular programming language world wide. Since April 2015 Java has achieved the top spot in the TIOBE Programming Community Index<\/a> as the world’s most popular programming language.<\/p>\n\n\n\n

\"\"
Source: https:\/\/www.tiobe.com\/tiobe-index\/<\/a><\/figcaption><\/figure>\n\n\n\n

What is Kotlin?<\/h2>\n\n\n\n

Kotlin is a programming language that was created by JetBrains who is well known for developing popular tools for software development such as IDE’s like IntelliJ IDEA, PyCharm and PhpStorm as well the continuous integration tool Team City.<\/p>\n\n\n\n

Kotlin supports object oriented programming is designed to be interoperable with Java. Kotlin is primarily used for Android app development however it can also be used for server side applications and data science applications.<\/p>\n\n\n\n

Kotlin v1.0 was released in February 2016 and has been designed to be concise and remove a lot of the boilerplate that you see in Java. Just like Java, Kotlin is compiled into bytecode which is run on the JVM.<\/p>\n\n\n\n

Some of the important features of Kotlin include the following.<\/p>\n\n\n\n