+ 1

How can we write the java program once and run on different operating systems..?

4th Jun 2020, 6:28 AM
Priyanka Macha
Priyanka Macha - avatar
9 Respuestas
+ 7
AMOGHA. A. K. What is that? because I can't read the answer ,all I see is some rectangle with diagonals
4th Jun 2020, 6:39 AM
Abhay
Abhay - avatar
+ 4
Same here
4th Jun 2020, 6:41 AM
Hardik Sharma
Hardik Sharma - avatar
+ 3
After compilation you will get the bytecode that is intermediate between compilation and running it. This code is Machine independent in nature. Thanks
4th Jun 2020, 6:36 AM
Hardik Sharma
Hardik Sharma - avatar
+ 3
Abhay Hardik Sharma he wrote... "After compiling java coding, however .class file is generated to JVM. Anyhow all operating systems have theri own JVM."
4th Jun 2020, 8:44 AM
artiste
artiste - avatar
+ 2
AMOGHA. A. K. Downvoting your reply because of fancy font. Some people device doesn't support these kind of fonts and they can't read. So please use normal font for answer.
4th Jun 2020, 7:56 AM
A͢J
A͢J - avatar
+ 2
Whene you complie java code jvm will generate .class file which is run on any jvm on different pc so you can say that write once run anywhere.
5th Jun 2020, 5:32 AM
Aaditya Tailor
Aaditya Tailor - avatar
+ 2
If you think on multiple PCs publish your code on github.
5th Jun 2020, 10:48 AM
CodeFu
CodeFu - avatar
+ 1
Java has this special characteristic in itself, it's bytecode can be run on any OS.
4th Jun 2020, 6:32 AM
Hardik Sharma
Hardik Sharma - avatar
+ 1
What is byte code?
4th Jun 2020, 6:35 AM
Priyanka Macha
Priyanka Macha - avatar