MathWorks Interview Question

how was java designed to be platform independent.

Interview Answer

Anonymous

Oct 24, 2011

Say you develop code on one system and compile on it and you will get byte-code. Which is a machine independent code. You can run this byte-code on any machine as long it has an instance of JVM running. Unlike Java, C for example make use of OS libraries when it is linking header files during compile time. So Java doesn't have that particular notion of system dependency.