Why java can run on any platform ? Give list of all programing language which is platform independent. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

12th Nov 2017, 4:32 AM
Sunil Yadav
Sunil Yadav - avatar
3 Answers
+ 6
now .net also have its core version which is platform independent .
12th Nov 2017, 4:59 AM
Shubham Nainwal
Shubham Nainwal - avatar
+ 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
12th Nov 2017, 4:53 AM
shobhit
shobhit - avatar