Goldman Sachs interview question

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

Interview Answer

Anonymous

2 Feb 2017

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