Goldman Sachs Interview Question

Why does Java run on any machine while C++ does not.

Interview Answer

Anonymous

Feb 2, 2017

Java code compiles to java bytecode, which is then translated to the machine code of the corresponding machine by the Java Virtual Machine