Is Java completely Platform Independent?

后端 未结 8 1624
鱼传尺愫
鱼传尺愫 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:59

    You problem will not be executing your code, but more likely the assumptions you have to make about file paths, available external commands (if you need them), necessary file permissions and other external factors that don't really fall under the "Java" problem domain. Unless you're planning on using native code (via JNI) extensively, Java will not be your problem, your environment will. Which brings us back to the old adage: "write once, test everywhere".

提交回复
热议问题