how was java designed to be platform independent.
Anonimo
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.