+ 5
Why java can run on any platform ? Give list of all programing language which is platform independent.
I know java can run on any platform that is why it is platform independent but I want to know why java can run on any platform.
3 Answers
+ 13
Why java is platform independent:
https://stackoverflow.com/questions/2748910/how-is-java-platform-independent-when-it-needs-a-jvm-to-run
Other platform independent languages:
https://stackoverflow.com/questions/2607400/platform-independent-languages
+ 6
now .net also have its core version which is platform independent .
+ 5
because computers run on machine code & your java code is compiled to a code which can only be understood by JVM & then there are JVM for every major OS so you write code, your compiler compiles it to a code only understood by jvm & then that jvm converts that compiled codes into machine code according to the os & architecture at runtime.
& no java can't run on every os it can only run on os for which jvm is available