Java “Virtual Machine” vs. Python “Interpreter” parlance?

后端 未结 13 637
春和景丽
春和景丽 2020-11-29 14:45

It seems rare to read of a Python \"virtual machine\" while in Java \"virtual machine\" is used all the time.

Both interpret byte codes; why call one a virtual machi

13条回答
  •  孤独总比滥情好
    2020-11-29 15:08

    No, they don't both interpret byte code.

    Python only interprets bytecode if you are running with pypy. Otherwise it is compiled into C and interpreted at that level.

    Java compiles to bytecode.

提交回复
热议问题