Is Java completely Platform Independent?

后端 未结 8 1630
鱼传尺愫
鱼传尺愫 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 12:54

    For the most part, yes. Because Java compiles to bytecode that's executed by its virtual machine, it can generally be expected to behave the same way regardless of the system sitting under the virtual machine.

    However. Not even virtual machines are immune to bugs. A quick Google search turns up the following, for example:

    http://www.ibm.com/developerworks/java/library/j-diag0521.html

    Differences in behavior can vary from JVM to JVM. Hopefully you won't end up with code that depends on any of these cases... but careful research is worthwhile to know what the limitations of your infrastructure are.

提交回复
热议问题