I
I
Ingerniated2017-04-16 15:00:22
Java
Ingerniated, 2017-04-16 15:00:22

Why is java considered slower than other C++?

Please tell me why Java is considered slower than other languages, such as C ++, because both of these languages ​​are compiled into machine code, what is the difference?
Why is c++ more popular than java in the gaming world?
And how can python compete with them, if it is interpreted at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Therapyx, 2017-04-16
@Ingernirated

Because Java interprets code into byte code while in RAM. If the "C" code goes directly to the RAM cells, then in Java imagine this: That in the RAM there is a huge window with a virtual machine where the code goes, and only from there to the RAM.
Words may not be so clear, on YouTube there are a lot of videos on this issue 100% ))
here, immediately the first link ...) https://www.youtube.com/watch?v=G1ubVOl9IBw

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question