Java vs C app performance – Gary explains

Get 75% off our official Android Development Course run by Gary Sims himself: http://dgit.academy/75off

Read article: https://www.androidauthority.com/java-vs-c-app-performance-689081/

Java is the official language of Android, but you can also write apps in C or C++ using the NDK. But which language is faster on Android?

Talk about Android in our forums: http://www.androidauthority.com/community

Subscribe to our YouTube channel: http://www.youtube.com/subscription_center?add_user=androidauthority
—————————————————-
Stay connected to Android Authority:
– http://www.androidauthority.com
– http://google.com/+androidauthority
– http://facebook.com/androidauthority/
– http://twitter.com/androidauth/
– http://instagram.com/androidauthority/

Follow the Team:
Josh Vergara: https://plus.google.com/+JoshuaVergara
Joe Hindy: https://plus.google.com/+JosephHindy
Lanh Nguyen: https://plus.google.com/+LanhNguyenFilms
Jayce Broda: https://plus.google.com/+JayceBroda
Gary Sims: https://plus.google.com/+GarySims
John Velasco: https://plus.google.com/+JohnVelasco
Nirave Gondhia: https://plus.google.com/+NiraveG

source

Author: avnblogfeed

ANGELHOUSE © 2009 - 2022 | HOSTING BY PHILLYFINEST369 SERVER STATS| & THE IDIOTS ROBOT AND CONTROL INC. |(RSS FEED MODULE)| ALL YOUTUBE VIDEOS IS A REGISTERED TRADEMARK OF GOOGLE INC. THE YOUTUBE CHANNELS AND BLOG FEEDS IS MANAGED BY THERE RIGHTFUL OWNERS (AVNBLOGFEED.COM)

21 thoughts on “Java vs C app performance – Gary explains

  1. Maybe interesting to compare this again(4 years later, using GraalVM on a desktop). What I think should have been compared also, is actual runtime. So no compiler delay included. Cheers

  2. i wonder why all unix and linux and windows operating systems as well as several major databases don’t just switch over to java if it’s faster and drop c and c++

  3. We are in 2020 and we still compare C to some other garbage languages in term of performance!! I mean really!! This doesn't need comparaison even lol

  4. May be this the reason still C is better. C is doing their work for him host one time in life. But Java doing Everytime. They called this is platform independent, let's enjoy it who cares about nano second when built a big webapp. But these sha things scary in Java webapp

  5. One thing worth to mention about Java programs is the advantage of the bitecode to use features of future architecture through the JVM, while in C/C++, you need to recompile to machine code in order to utilize the same features. So, unless you recompile your C/C++ software, that initial performance gap between Java and C/C++ will disappear or move in favor of Java if you swap CPU. That's actually a great feature many applications, like servers that need to swap hardware but still need to provide services 24/7 or even at home if you built your new PC and you just swapped the OS drive. So, if anything, with Java you can be sure that every time you run your program, the software will use all the features of your CPU to the fullest extent.

  6. I am watching a low information "expert." The very first thing he talks about is only superficially accurate, and at best misleading. He talks about the JVM, and misinforms the viewer on the topic, insinuating the java byte code is interpreted at runtime when it isn't, it is compiled at runtime. Leading with misinformation is an interesting choice, leading to the conclusion that this "expert" here isnt one and doesnt even know that he is being misinformative. This quack is regurgitating information produced by someone else, and he didnt even bother to question the veracity of any of it. He didnt run any "tests" .. certainly not reasonably valid ones.

  7. This is just arithmetic, the simplest of simplest to implement computing feature. Try adding tests where you have to allocate and deallocate gigabytes of data (like any app with a dynamic GUI would). Also try doing something with strings, or move to a Java vs C++ comparison, and bench some OO paradigms (like just about any app would). Java will be at least 100x slower.

  8. Every person that dont know how to code, would look at these results and pick C…so why thats not the case with programmers? Lazyness?

Comments are closed.