Why Java codes take more run time than C/C++ ?
Why Java codes take more run time than C/C++ ?
Collapse
X
-
Java runs itself on the Java Virtual Machine, which is a simulation of a processor. So essentially, a Java program must run on the JVM, which in turn must run on your computers processor, and communication must occur between the two.
In C/C++, your code is compiled specifically to run on that processor. It runs on that processor with no 'middle-man' between the two.
Comment