+ 1

Can a software be developed in java so that it runs in any os?Any machine?

https://www.sololearn.com/discuss/1316935/?ref=app

4th Sep 2019, 2:18 AM
Pavan Mahesh
Pavan Mahesh - avatar
3 Respostas
+ 2
Yes via the JVM. That's the big selling point of Java anyway.
4th Sep 2019, 3:32 AM
Sonic
Sonic - avatar
+ 1
Yes. But it's important to write it THAT way because you can also write your code to NOT run on some operating systems. For example: When providing a path, if you use backslash to separate folders, the code works only on Windows. You should use "File.separator" in that case, to run the code on any OS.
4th Sep 2019, 4:22 AM
Tashila Pathum
Tashila Pathum - avatar
0
yes if there is Java VM (virtual machine) implemented on that OS. There can be problems with GUI, how to do it as OS independent.
4th Sep 2019, 6:07 AM
zemiak