There are several reasons:
- History is a system of airlines older than Java. This may need to be rewritten, but today it is not as I know.
- In real time, it usually avoids garbage collection, because you cannot wait for the system to wait until the GC thread completes its work. Things should be more deterministic in real-time control situations. This is true for Java, C #, and any other language using the GC.
There is a real-time version of Java , but I do not know how widely it is used.
I'm not sure that the C / C ++ output, which has always been faster than Java, is still true for JDK 6. Much has changed since version 1.0, when many benchmarks were run (for example, faster object creation, a new memory model, new generation GC algorithms, revised reflection, etc.).
source
share