• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Java vs. Kotlin for an Android application?  RSS feed

 
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?
 
Marshal
Posts: 13439
222
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • 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: 5389
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • 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: 6
  • 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: 6
  • 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.
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!