Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Java vs. Kotlin for an Android application?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your view on Java vs. Kotlin for an Android application?
 
Sheriff
Posts: 15815
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems to me that Kotlin is fast becoming, if not already, the preferred language for Android development. It certainly has some nice language features. I'm actively learning it myself currently.

There are many popular Android apps out there that are written in Kotlin: https://developer.android.com/kotlin/
 
Saloon Keeper
Posts: 6530
160
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The beauty is that it's not an either/or thing since it's possible to use both in the same app. Kotlin needs less code, making some kinds of classes (like data and event classes) trivial to create since much less boilerplate is required. Moving those from Java to Kotlin is an obvious approach to Kotlin-ize Android apps - I've started one of my apps on that route, mostly as learning exercise, and have been satisfied with the result.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kotlin offers many advanced programming features than Java.

Take a look at the comparison of features (developers’ perspective):

1_DJE4y4UXw9ftqQ1MBUo6Xw.png
[Thumbnail for 1_DJE4y4UXw9ftqQ1MBUo6Xw.png]
 
Helga Mykytej
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many factors and perceptions that matter a lot when we compare any languages, frameworks, or tools. We know that Kotlin is based on Java and you can’t actually compare both these languages due to an influence of one on the other. Many have adopted Kotlin and are enjoying tangible benefits of it, and there are developers who are stuck with Java in android app development. One thing is certain that Kotlin has potential to replace Java language but it may take more time than we imagine.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you to read this I found it very informative:

https://code.tutsplus.com/articles/java-vs-kotlin-should-you-be-using-kotlin-for-android-development--cms-27846
 
Get off me! Here, read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic