What language is faster? Java or C++? On web, I have come across a multitude of benchmarks who claim one is faster than the other.
And yes, I would also like to know whether these differences do have any significance in application development or not? I am really confused. Please shed some light on this. Thanks.
Languages don't have a speed.
Java is faster to develop in, and well written C++ will outperform Java.
In gneral, applications written in C++ are faster than the equivalent apps in Java because they're in native code, while Java is byte code interpreted by the JVM.
I asked similar questions with regards to numerical computing few months ago. consensus seemed to be that Java is slower than decent C++ compiler. it seems Java just-in-time compiler is not able to vectorize/simdize loops. so in that regard Java is slow.