• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Java vs. Kotlin for an Android application?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is your view on Java vs. Kotlin for an Android application?
 
Sheriff
Posts: 17734
302
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Bartender
Posts: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic