What are the advantages of using Virtual Machine compilation (eg. JVM) over natively compiled languages?

后端 未结 8 1147
既然无缘
既然无缘 2020-12-24 13:26

I\'ve heard that the advantage of java is that people can write code, compile it for the JVM, and run it anywhere. Each person just needs a JVM app for their platform.

8条回答
  •  感情败类
    2020-12-24 14:25

    The main advantage, to me, is the library portability. Libraries might have version dependencies between themselves, but, other than that, a JAR just works.

    There is the so-called classloader hell, but that's not nearly as common.

    In most other languages, you either have to find the correct library binary, or you have to download the sources to install it.

提交回复
热议问题