What is the difference between “architecture-neutral” and “portable”?

前端 未结 9 971
忘了有多久
忘了有多久 2020-12-14 12:40

I\'m reading Herbert Schildt\'s book \"Java: The Complete Reference\" and there he writes that Java is portable AND architecture-neutral. What is the difference between this

9条回答
  •  难免孤独
    2020-12-14 13:46

    I suspect that he means that code can run on many platforms without recompilation. It is also possible to write code that deals with the underlying system without rewrites or conditions.

    E.g. Serialized objects from a 32 bit Windows system can be read on a 64bit Linux system.

提交回复
热议问题