Anchit Herredia wrote:
But does that mean that any program written in Java will be slower than the same one written in C++?
Using the same argument, you can say that assembly language is slower than C, because most assemblers are written in C....
well, assembly is arguable slower, but for a different reason
Remember, Java not only has a compiler (that optimizes), but the JVM has multiple just-in-time compilers that optimizes too. Comparing the speed of two compiled programs based on the language used for the compiler is not very valid.
Anchit Herredia wrote:
(Can't believe Java was written using the shitty C++)
Having worked with C++ for many years, and still working with it, I will be the first to say that the language has many warts.... but it is far from a "shitty" language". In fact, I would still list it as one of my favorites.
Henry