whether c++ is faster than java? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

whether c++ is faster than java?

20th Aug 2016, 10:02 AM
balaji
balaji - avatar
3 Antworten
+ 1
Yes c++ programs run efficiently and faster than java programs. The reason is that java programs run on a virtual machine. But c++ programs directly executed by the os
20th Aug 2016, 10:40 AM
Anvar
Anvar - avatar
0
of course c++ is faster than java.
20th Aug 2016, 10:07 AM
kiwiyou
kiwiyou - avatar
0
Java has significantly more overhead, and performs tasks for you such as garbage collection. It varies but the number i see thrown around a lot is C++ being 20 times faster. Not as big of an issue today with most CPUs sitting idle a lot.
22nd Aug 2016, 8:31 PM
Eric Weeks
Eric Weeks - avatar