What makes Java a cross platform programming language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What makes Java a cross platform programming language?

Is there any other language that is also a cross platform?

3rd Dec 2016, 1:50 PM
Fitria Utami
Fitria Utami - avatar
2 Answers
+ 2
Java code after compiling gets converted into Java bytecode which is independent of platform. this bytecode is understood by JVM which is installed on the platform thus same compiled code runs in different platform many languages like c++ etc are cross platform but they are not platform indrpendent as ondrej.said
3rd Dec 2016, 3:21 PM
Sandeep Chatterjee
+ 1
All major languages are cross-platform. Java achieves it by using bytecode that is executed by JVM. Other languages like C++ achieve it by compilling sources into binaries that targeting different platforms. Scripting languages like PHP has their interpreters also available on several platforms.
3rd Dec 2016, 2:10 PM
Ondřej Doněk
Ondřej Doněk - avatar