A lot of people have asked me this question over time. Normal answer that we get is, C++ is faster than Java in general. However there are scenarios when Java can be faster than C++. Here's how.
1. Concurrent Data Structures can be faster in Java than C++. This is because JVM helps take care of a lot of things when data structure is not is use.
2. Dynamic Memory management can be faster and efficient in Java over C++.
3. Inline tends to be faster in Java.
No comments:
Post a Comment