Why is that?
Why Java can be so powerful so every OS can compatible with it?
The answer is because of java byte code which it can run on any system irrespective of its underlying operating system.
So, if you are now developing Java, you didn't need to worry if you need to re-code for IOS or Linux or Windows. Congratulations! It will run on them.
"Write once, run everywhere"
I hope this explanation help 😉