0

java question

If we compile a Java program in the Windows environment, can we run that program in any other operating system? Explain your answer briefly

31st Jan 2022, 3:23 PM
Janith Induwara Nanayakkara
Janith Induwara Nanayakkara - avatar
3 Answers
+ 2
Java is platform independent. Already mentioned in many articles. Just type "Java plateform independent" on Google.
31st Jan 2022, 4:51 PM
AÍąJ
AÍąJ - avatar
31st Jan 2022, 3:48 PM
Jayakrishna 🇼🇳
0
yes if on that OS is correct implemented java virtual machine for same Java version, and computer has aproximate same hardware as program expected. ie Android don't support Java 17 and Swing GUI. Or some computers has not any display.
1st Feb 2022, 7:01 PM
zemiak