Is Java completely Platform Independent?

后端 未结 8 1570
鱼传尺愫
鱼传尺愫 2020-12-24 12:43

Is Java completely Platform Independent ?

if not then, what care needs to be taken to see that your code written in Java can run on Multi Platforms. Basically it sho

相关标签:
8条回答
  • 2020-12-24 13:12

    There are very few and they should be pretty obvious. like System.getProperty("os.name") is clearly OS dependant or it wouldn't work. The most common one is System.exec() as it calls another application which is on your system, again you should know if the application you are calling works the same on every system or not (unlikely).

    0 讨论(0)
  • 2020-12-24 13:14

    Threading priorities is one thing to consider. Other OS like Solaris for example has more thread priorities than windows. So if you are working heavily on multi-threading, OS is something that may affect the program's behavior.

    0 讨论(0)
提交回复
热议问题