Question d’entretien chez MathWorks

how was java designed to be platform independent.

Réponse à la question d'entretien

Utilisateur anonyme

24 oct. 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.