Which is better in android app development, Java or C++? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

Which is better in android app development, Java or C++?

4th Aug 2022, 12:37 PM
トマス・オウェン
3 Réponses
+ 5
None, both. It depends on the context, your experience and your goals. (Often Kotlin and Java are recommended for Android.)
4th Aug 2022, 12:38 PM
Lisa
Lisa - avatar
+ 2
If you are going to use Android Studio as your IDE, I'd suggest using Java (or Kotlin). In the IDE you have a choice between Java and Kotlin (it doesn't mean you cannot use C++ there), but Android Studio is configured to use one of those two languges. What's more, the official site of Android for developers contains a lot of docs, as well as courses and examples written in Kotlin and Java. Also as far as I know Google prefers Kotlin (I've heard that now you can add your app to google play store only if it's written in Kotlin but I'm unsure if that's true).
4th Aug 2022, 11:43 PM
Errno404
+ 1
Java covers most of the device types, thanks to a layer of JVM and Android SDK, while C development gives a deeper understanding of the architecture and allows you to develop code that is several times faster than its Java counterpart. While the Android NDK provides some architecture overlay, you will still need to develop different approaches for ARMv7, ARMv8, x86, and amd64. But by solving all the complexities of developing in C, you will get an application that is excellently optimized for speed and time. Which language to choose is entirely up to you and how you want to program. You can't say that C is better than Java, just as you can't say that Java is better than C.
6th Aug 2022, 11:14 AM
Marong
Marong - avatar